本文整理了Java中org.tinygroup.logger.Logger
类的一些代码示例,展示了Logger
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger
类的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称:Logger
[英]日志接口
[中]日志接口
代码示例来源:origin: org.tinygroup/org.tinygroup.remoteconfig.zk
public void delete(String envId) {
LOGGER.logMessage(LogLevel.INFO, "远程配置,删除默认环境[{0}]", envId);
try {
ZKDefaultEnvManager.delete(envId);
LOGGER.logMessage(LogLevel.INFO, "远程配置,删除默认环境成功");
} catch (Exception e) {
LOGGER.logMessage(LogLevel.ERROR, "远程配置,删除默认环境[{0}]", e, envId);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.command
public void print(String str) {
try {
if (str != null) {
out.write(str.getBytes());
}
} catch (IOException e) {
LOGGER.errorMessage("内容({0})输入时出现异常:。", e, str);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.pc
public synchronized void setObjectStorage(ObjectStorage objectStorage) {
this.objectStorage = objectStorage;
try {
List<Work> works = objectStorage.loadObjects("Work");
this.workList.addAll(works);
} catch (Exception e) {
LOGGER.error(e);
}
}
代码示例来源:origin: org.tinygroup/threadgroup
public void run() {
try {
logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行开始...",
multiThreadProcess.getName(), name);
action();
logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行结束",
multiThreadProcess.getName(), name);
} catch (Exception e) {
logger.errorMessage(e.getMessage(), e);
}
multiThreadProcess.threadDone();
}
代码示例来源:origin: org.tinygroup/org.tinygroup.tinydb
protected int[] executeBatchOperator(String[] sqls) throws TinyDbException {
try {
logger.logMessage(LogLevel.DEBUG, "DbOperatorId:[{0}],执行sql列表:{1}",
uuid.toString(), sqlsToString(sqls));
return jdbcTemplate.batchUpdate(sqls);
} catch (DataAccessException e) {
logger.errorMessage("DbOperatorId:[{0}],执行错误的sql列表:{1}", e,
uuid.toString(), sqlsToString(sqls));
throw new TinyDbException(e);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.springutil
private void addUrl(String urlString) {
if (!configs.contains(urlString)) {
configs.add(urlString);
LOGGER.logMessage(LogLevel.INFO, "添加Spring配置文件:{urlString}",
urlString);
}
}
代码示例来源:origin: org.tinygroup/command
public void print(String str) {
try {
if (str != null) {
out.write(str.getBytes());
}
} catch (IOException e) {
logger.errorMessage("内容({0})输入时出错:。", e, str);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.springutil
public void removeUrl(String urlString) {
if (configs.contains(urlString)) {
configs.remove(urlString);
LOGGER.logMessage(LogLevel.INFO, "删除Spring配置文件:{urlString}", urlString);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.command
private CommandGoalExecutor newInstance(String className2) {
try {
return (CommandGoalExecutor) Class.forName(className2)
.newInstance();
} catch (Exception e) {
LOGGER.errorMessage("加载类<{0}>时出现异常!", e, className2);
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcore
public void afterRemoteHandle(Event event) {
LOGGER.logMessage(LogLevel.DEBUG, "远程后置AOP开始处理");
for (CEPCoreAopAdapterContainer adapterContainer : afterRemoteList) {
adapterContainer.handle(event);
}
LOGGER.logMessage(LogLevel.DEBUG, "远程后置AOP处理完成");
}
代码示例来源:origin: org.tinygroup/org.tinygroup.springutil
public static Object typeConverter(Object value, String className) {
try {
Class clazz = Class.forName(className);
return converter.convertIfNecessary(value, clazz);
} catch (ClassNotFoundException e) {
LOGGER.errorMessage("get Class error with className:" + className,
e);
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.tinygroup/tinyplugin
public void start() {
logger.logMessage(LogLevel.INFO, "启动插件管理器");
pluginManager.start();
logger.logMessage(LogLevel.INFO, "启动插件管理器成功");
}
代码示例来源:origin: org.tinygroup/applicationprocessor
public void stop() {
try {
cep.stop();
} catch (Exception e) {
logger.errorMessage("CEP 停止出错", e);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.flowbasiccomponent
public void execute(Context context) {
LOGGER.logMessage(LogLevel.INFO, "线程休眠组件开始执行");
ThreadOperatorUtil.threadSleep(sleepTime, timeUnit);
LOGGER.logMessage(LogLevel.INFO, "线程休眠组件执行结束");
}
代码示例来源:origin: org.tinygroup/org.tinygroup.tinydb
protected void operatorErrorLog(String sql, DataAccessException exception,
Object... parameters) {
logger.errorMessage("DbOperatorId:[{0}],执行的错误sql:[{1}],参数:[{2}]",
exception, uuid.toString(), sql, paramsToString(parameters));
}
代码示例来源:origin: org.tinygroup/org.tinygroup.flowprocessor
public void stop() {
LOGGER.logMessage(LogLevel.INFO, "停止FlowApplicationProcessor");
cepcore.unregisterEventProcessor(flowprocessor);
LOGGER.logMessage(LogLevel.INFO, "停止FlowApplicationProcessor完成");
}
代码示例来源:origin: org.tinygroup/dao
public T update(T object) {
try {
return (T) basicDaoService.update(object);
} catch (Exception e) {
logger.errorMessage("更新对象失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.command
public void start() {
LOGGER.logMessage(LogLevel.DEBUG, "启动插件命令行管理器");
init();
LOGGER.logMessage(LogLevel.DEBUG, "启动插件命令行管理器成功");
}
代码示例来源:origin: org.tinygroup/dao
public Collection<T> save(Collection<T> objects) {
try {
return (Collection<T>) basicDaoService.save(objects);
} catch (Exception e) {
logger.errorMessage("保存对象集合失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.servicehttpchannel
public void stop() {
LOGGER.logMessage(LogLevel.DEBUG, "停止MockServiceProcessor");
cepcore.unregisterEventProcessor(processor);
LOGGER.logMessage(LogLevel.DEBUG, "停止MockServiceProcessor完成");
}
内容来源于网络,如有侵权,请联系作者删除!