本文整理了Java中org.modeshape.common.logging.Logger.log()
方法的一些代码示例,展示了Logger.log()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.log()
方法的具体详情如下:
包路径:org.modeshape.common.logging.Logger
类名称:Logger
方法名:log
[英]Log an exception (throwable) at the supplied level with an accompanying message. If the exception is null, then this method calls #debug(String,Object...).
[中]在提供的级别记录异常(可丢弃),并附带消息。如果异常为null,则此方法调用#debug(字符串、对象…)。
代码示例来源:origin: org.fcrepo/modeshape-common
@Override
public void writeTo( Logger logger,
Status firstStatus,
Status... additionalStatuses ) {
EnumSet<Status> stats = EnumSet.of(firstStatus, additionalStatuses);
if (hasProblems()) {
for (Problem problem : this) {
Status status = problem.getStatus();
if (!stats.contains(status)) continue;
Level level = logLevelFor(status);
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
代码示例来源:origin: org.modeshape/modeshape-common
@Override
public void writeTo( Logger logger,
Status firstStatus,
Status... additionalStatuses ) {
EnumSet<Status> stats = EnumSet.of(firstStatus, additionalStatuses);
if (hasProblems()) {
for (Problem problem : this) {
Status status = problem.getStatus();
if (!stats.contains(status)) continue;
Level level = logLevelFor(status);
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void writeTo( Logger logger,
Status firstStatus,
Status... additionalStatuses ) {
EnumSet<Status> stats = EnumSet.of(firstStatus, additionalStatuses);
if (hasProblems()) {
for (Problem problem : this) {
Status status = problem.getStatus();
if (!stats.contains(status)) continue;
Level level = logLevelFor(status);
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
代码示例来源:origin: org.modeshape/modeshape-common
@Override
public void writeTo( Logger logger ) {
if (hasProblems()) {
for (Problem problem : this) {
Level level = logLevelFor(problem.getStatus());
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
代码示例来源:origin: org.fcrepo/modeshape-common
@Override
public void writeTo( Logger logger ) {
if (hasProblems()) {
for (Problem problem : this) {
Level level = logLevelFor(problem.getStatus());
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void writeTo( Logger logger ) {
if (hasProblems()) {
for (Problem problem : this) {
Level level = logLevelFor(problem.getStatus());
logger.log(level, problem.getMessage(), problem.getParameters());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!