本文整理了Java中com.metamx.common.logger.Logger.<init>()
方法的一些代码示例,展示了Logger.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.<init>()
方法的具体详情如下:
包路径:com.metamx.common.logger.Logger
类名称:Logger
方法名:<init>
暂无
代码示例来源:origin: com.metamx/emitter
public LoggingEmitter(LoggingEmitterConfig config, ObjectMapper jsonMapper)
{
this(new Logger(config.getLoggerClass()), Level.toLevel(config.getLogLevel()), jsonMapper);
}
代码示例来源:origin: com.metamx/java-util
public LoggingEmitter(LoggingEmitterConfig config, ObjectMapper jsonMapper)
{
this(new Logger(config.getLoggerClass()), Level.toLevel(config.getLogLevel()), jsonMapper);
}
代码示例来源:origin: metamx/java-util
public LoggingEmitter(LoggingEmitterConfig config, ObjectMapper jsonMapper)
{
this(new Logger(config.getLoggerClass()), Level.toLevel(config.getLogLevel()), jsonMapper);
}
代码示例来源:origin: metamx/java-util
@Test
public void testLogWithCrazyMessages()
{
final String message = "this % might %d kill %*.s the %s parser";
final Logger log = new Logger(LoggerTest.class);
log.warn(message);
}
代码示例来源:origin: metamx/java-util
@Test
public void testLegacyLogging()
{
final Logger log = new Logger(LoggerTest.class);
final Throwable throwable = new Throwable();
// These should show up in an IDE as deprecated, but shouldn't actually fail.
log.error("foo", throwable);
log.warn("foo", throwable);
}
}
内容来源于网络,如有侵权,请联系作者删除!