本文整理了Java中de.mhus.lib.core.logging.Log.log()
方法的一些代码示例,展示了Log.log()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log.log()
方法的具体详情如下:
包路径:de.mhus.lib.core.logging.Log
类名称:Log
方法名:log
暂无
代码示例来源:origin: de.mhus.lib/mhu-lib-core
@Override
public void log(LEVEL level, Object ... msg) {
for (Log target : targets)
target.log(level, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in trace, it will automatically append the objects if trace is enabled. Can Also add a trace.
* This is the local trace method. The trace will only written if the local trace is switched on.
* @param msg
*/
public void t(Object ... msg) {
log(LEVEL.TRACE, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in debug, it will automatically append the objects if debug is enabled. Can Also add a trace.
* @param msg
*/
public void d(Object ... msg) {
log(LEVEL.DEBUG, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in error, it will automatically append the objects if debug is enabled. Can Also add a trace.
* @param msg
*/
public void e(Object ... msg) {
log(LEVEL.ERROR, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in info, it will automatically append the objects if debug is enabled. Can Also add a trace.
* @param msg
*/
public void f(Object ... msg) {
log(LEVEL.FATAL, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in info, it will automatically append the objects if debug is enabled. Can Also add a trace.
* @param msg
*/
public void i(Object ... msg) {
log(LEVEL.INFO, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
/**
* Log a message in warn, it will automatically append the objects if debug is enabled. Can Also add a trace.
* @param msg
*/
public void w(Object ... msg) {
log(LEVEL.WARN, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-logging
/** {@inheritDoc} */
@Override
public void log(LEVEL level, Object ... msg) {
for (Log target : targets)
target.log(level, msg);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
protected void writeLine() {
log.log(level, line);
line.setLength(0);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-core
@Override
protected void writeLine() {
if (enter.get() != null) return;
enter.set(true);
try {
log.log(level, line);
line.setLength(0);
} finally {
enter.remove();
}
}
内容来源于网络,如有侵权,请联系作者删除!