com.metamx.common.logger.Logger.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(251)

本文整理了Java中com.metamx.common.logger.Logger.<init>()方法的一些代码示例,展示了Logger.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.<init>()方法的具体详情如下:
包路径:com.metamx.common.logger.Logger
类名称:Logger
方法名:<init>

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);
 }
}

相关文章