org.apache.felix.framework.Logger.doLog()方法的使用及代码示例

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

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

Logger.doLog介绍

暂无

代码示例

代码示例来源:origin: apache/felix

protected void _log(
    Bundle bundle, ServiceReference sr, int level,
    String msg, Throwable throwable)
{
  if (getLogLevel() >= level)
  {
    // Default logging action.
    doLog(bundle, sr, level, msg, throwable);
  }
}

代码示例来源:origin: apache/felix

protected void doLog(
  Bundle bundle, ServiceReference sr, int level,
  String msg, Throwable throwable)
{
  StringBuilder s = new StringBuilder();
  if (sr != null)
  {
    s.append("SvcRef ").append(sr).append(" ").append(msg);
  }
  else if (bundle != null)
  {
    s.append("Bundle ").append(bundle.toString()).append(" ").append(msg);
  }
  else
  {
    s.append(msg);
  }
  if (throwable != null)
  {
    s.append(" (").append(throwable).append(")");
  }
  doLog(level, s.toString(), throwable);
}

代码示例来源:origin: org.apache.servicemix.kernel/org.apache.servicemix.kernel.main

private void _log(ServiceReference sr, int level, String msg, Throwable throwable)
{
  // Save our own copy just in case it changes. We could try to do
  // more conservative locking here, but let's be optimistic.
  Object[] logger = m_logger;
  if (m_logLevel >= level)
  {
    // Use the log service if available.
    if (logger != null)
    {
      _logReflectively(logger, sr, level, msg, throwable);
    }
    // Otherwise, default logging action.
    else
    {
      doLog(sr, level, msg, throwable);
    }
  }
}

代码示例来源:origin: apache/felix

m_logger.doLog(
  hook.getBundle(),
  hook,

代码示例来源:origin: apache/felix

m_logger.doLog(
  hook.getBundle(),
  hook,

代码示例来源:origin: apache/felix

m_logger.doLog(
  hook.getBundle(),
  hook,

相关文章