public class JCLogger extends AbstractLogAdapter implements org.apache.commons.logging.Log
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message) |
void |
debug(Object message,
Throwable t) |
void |
error(Object message) |
void |
error(Object message,
Throwable t) |
void |
fatal(Object message) |
void |
fatal(Object message,
Throwable t) |
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
ILogger |
initialize(String loggerName,
ILogConfig config)
初始化日志记录器,并提供默认记录级别
|
void |
trace(Object message) |
void |
trace(Object message,
Throwable t) |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
buildEx, contains, debug, debug, debug, destroy, error, error, error, fatal, fatal, fatal, getLevel, getLogger, getLoggerName, info, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isInitialized, isTraceEnabled, isWarnEnabled, log, log, log, logWrite, trace, trace, trace, warn, warn, warn
buildMakeCallerInfo, buildMakeStackInfo, buildSimplePackageName, depth, ex
public void debug(Object message)
debug
in interface org.apache.commons.logging.Log
public void debug(Object message, Throwable t)
debug
in interface org.apache.commons.logging.Log
public void error(Object message)
error
in interface org.apache.commons.logging.Log
public void error(Object message, Throwable t)
error
in interface org.apache.commons.logging.Log
public void fatal(Object message)
fatal
in interface org.apache.commons.logging.Log
public void fatal(Object message, Throwable t)
fatal
in interface org.apache.commons.logging.Log
public void info(Object message)
info
in interface org.apache.commons.logging.Log
public void info(Object message, Throwable t)
info
in interface org.apache.commons.logging.Log
public ILogger initialize(String loggerName, ILogConfig config) throws Exception
ILogger
initialize
in interface ILogger
initialize
in class AbstractLogAdapter
loggerName
- 日志记录名称config
- 日志配置Exception
- 初始化时可能产生的异常public void trace(Object message)
trace
in interface org.apache.commons.logging.Log
public void trace(Object message, Throwable t)
trace
in interface org.apache.commons.logging.Log
public void warn(Object message)
warn
in interface org.apache.commons.logging.Log
Copyright © 2022. All rights reserved.