本文整理了Java中org.apache.felix.framework.Logger.doLog()
方法的一些代码示例,展示了Logger.doLog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.doLog()
方法的具体详情如下:
包路径:org.apache.felix.framework.Logger
类名称: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,
内容来源于网络,如有侵权,请联系作者删除!