de.mhus.lib.core.logging.Log.f()方法的使用及代码示例

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

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

Log.f介绍

[英]Log a message in info, it will automatically append the objects if debug is enabled. Can Also add a trace.
[中]在信息中记录一条消息,如果启用调试,它将自动附加对象。还可以添加跟踪。

代码示例

代码示例来源:origin: de.mhus.lib/mhu-lib-persistence

@Override
public void doAnalyze(long connectionId, String original, String query, long delta, Throwable t) {
  if (t != null) return;
  if (delta > traceMaxRuntime) {
    log().f(connectionId,"Query Runtime Warning",delta,query);
    MLogUtil.logStackTrace(log(), ""+connectionId, Thread.currentThread().getStackTrace());
  }
}

代码示例来源:origin: de.mhus.lib/mhu-lib-persistence

public void printStackTrace() {
  if (traceCaller.value() && lastStackTracePrint + traceWait.interval() < System.currentTimeMillis()) {
    lastStackTracePrint = System.currentTimeMillis();
    LinkedList<ConnectionTrace> list = new LinkedList<ConnectionTrace>(getStackTraces().values());
    Collections.sort(list);
    log().f("Connection Usage",list.size());
    for (ConnectionTrace trace :list) {
      trace.log(log());
    }
  }
}

代码示例来源:origin: de.mhus.lib/mhu-lib-core

log().f("Error t1",job.getName(),t1); // should not happen
  log().f("Can't reschedule",job.getName(),t);
log().f("Error t3",job.getName(),t3); // should not happen

代码示例来源:origin: de.mhus.lib/mhu-lib-karaf

} break;
case "fatal": {
  log().f((Object[])parameters);
} break;
case "console": {

代码示例来源:origin: de.mhus.lib/mhu-lib-logging

logger.f(method, msg,t);
  break;
case Level.ERROR_INT:

代码示例来源:origin: de.mhus.lib/mhu-lib-core

logger.f(method, msg,t);
  break;
case Level.ERROR_INT:

相关文章