本文整理了Java中org.apache.logging.log4j.core.Logger.logMessage()
方法的一些代码示例,展示了Logger.logMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.logMessage()
方法的具体详情如下:
包路径:org.apache.logging.log4j.core.Logger
类名称:Logger
方法名:logMessage
暂无
代码示例来源:origin: mulesoft/mule
@Override
public void logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t) {
getLogger().logMessage(fqcn, level, marker, message, t);
}
代码示例来源:origin: org.mule.modules/mule-module-launcher
@Override
public void logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t)
{
getLogger().logMessage(fqcn, level, marker, message, t);
}
代码示例来源:origin: org.mule.runtime/mule-module-launcher
@Override
public void logMessage(String fqcn, Level level, Marker marker, Message message, Throwable t) {
getLogger().logMessage(fqcn, level, marker, message, t);
}
代码示例来源:origin: org.apache.logging.log4j/log4j-1.2-api
private void maybeLog(final String fqcn, final org.apache.logging.log4j.Level level,
final Object message, final Throwable throwable) {
if (logger.isEnabled(level, null, message, throwable)) {
logger.logMessage(FQCN, level, null, new ObjectMessage(message), throwable);
}
}
代码示例来源:origin: com.mchange/mchange-commons-java
private void log(Level lvl, Object msg, Throwable t)
{
if(this.logger.isEnabled(lvl))
{
((org.apache.logging.log4j.core.Logger) this.logger)
.logMessage(Log4jMLogger.FQCN, lvl, null, new ObjectMessage(msg), t);
}
}
代码示例来源:origin: org.apache.logging.log4j/log4j-1.2-api
public void forcedLog(final String fqcn, final Priority level, final Object message, final Throwable t) {
final org.apache.logging.log4j.Level lvl = org.apache.logging.log4j.Level.toLevel(level.toString());
final Message msg = message instanceof Message ? (Message) message : new ObjectMessage(message);
logger.logMessage(fqcn, lvl, null, msg, t);
}
内容来源于网络,如有侵权,请联系作者删除!