com.obsidiandynamics.zerolog.Zlg.level()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(78)

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

Zlg.level介绍

暂无

代码示例

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void c(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.CONF).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void d(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.DEBUG).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void i(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.INFO).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void t(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.TRACE).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void e(Object message) { 
 level(LogLevel.ERROR).message(message).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void c(Object message) { 
 level(LogLevel.CONF).message(message).flush(entrypoint);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void d(Object message) { 
 level(LogLevel.DEBUG).message(message).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void t(Object message) {
 level(LogLevel.TRACE).message(message).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void e(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.ERROR).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void w(Object message) { 
 level(LogLevel.WARN).message(message).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void w(String format, Consumer<LogChain> logChainConsumer) {
 level(LogLevel.WARN).format(format).flush(logChainConsumer);
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void i(Object message) { 
 level(LogLevel.INFO).message(message).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void c(String summary, Throwable cause) {
 level(LogLevel.CONF).message(summary).threw(cause).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void e(String summary, Throwable cause) {
 level(LogLevel.ERROR).message(summary).threw(cause).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void w(String summary, Throwable cause) {
 level(LogLevel.WARN).message(summary).threw(cause).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void i(String summary, Throwable cause) {
 level(LogLevel.INFO).message(summary).threw(cause).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-core

default void d(String summary, Throwable cause) {
 level(LogLevel.DEBUG).message(summary).threw(cause).flush(entrypoint); 
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-bridge-hazelcast

@Override
public void log(Level level, String message) {
 zlg.level(JulMappings.mapLevel(level)).message(message).entrypoint(entrypoint).log();
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-bridge-jul

@Override
public void publish(LogRecord record) {
 zlg
 .level(JulMappings.mapLevel(record.getLevel()))
 .format("%s")
 .arg(Args.map(Args.ref(record), simpleFormatter::formatMessage))
 .threw(record.getThrown())
 .entrypoint(entrypoint)
 .log();
}

代码示例来源:origin: com.obsidiandynamics.zerolog/zerolog-bridge-hazelcast

@Override
public void log(Level level, String message, Throwable thrown) {
 zlg.level(JulMappings.mapLevel(level)).message(message).threw(thrown).entrypoint(entrypoint).log();
}

相关文章