public class Log extends Object implements org.apache.commons.logging.Log
| Modifier and Type | Field and Description |
|---|---|
protected int |
configuredLogLevel
The configured log level
|
protected int |
currentLogLevel
The current log level
|
static int |
LOG_LEVEL_ALL
Enable all logging levels
|
static int |
LOG_LEVEL_DEBUG
"Debug" level logging.
|
static int |
LOG_LEVEL_ERROR
"Error" level logging.
|
static int |
LOG_LEVEL_FATAL
"Fatal" level logging.
|
static int |
LOG_LEVEL_INFO
"Info" level logging.
|
static int |
LOG_LEVEL_OFF
Enable no logging levels
|
static int |
LOG_LEVEL_TRACE
"Trace" level logging.
|
static int |
LOG_LEVEL_WARN
"Warn" level logging.
|
protected static Properties |
openas2LogProps
Properties loaded from simplelog.properties
|
protected static String |
systemPrefix
All system properties used by
OpenAS2 start with this |
| 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) |
static String |
getExceptionMsg(Throwable e) |
int |
getLevel()
Get logging level.
|
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
protected boolean |
isLevelEnabled(int logLevel) |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
resetLevel()
Reset logging level to congiured level.
|
void |
setLevel(int currentLogLevel)
Set logging level.
|
void |
trace(Object message) |
void |
trace(Object message,
Throwable t) |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
protected static final String systemPrefix
OpenAS2 start with thisprotected static final Properties openas2LogProps
public static final int LOG_LEVEL_TRACE
public static final int LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_WARN
public static final int LOG_LEVEL_ERROR
public static final int LOG_LEVEL_FATAL
public static final int LOG_LEVEL_ALL
public static final int LOG_LEVEL_OFF
protected volatile int configuredLogLevel
protected volatile int currentLogLevel
public Log(String inName)
public void resetLevel()
public void setLevel(int currentLogLevel)
currentLogLevel - new logging levelpublic int getLevel()
protected boolean isLevelEnabled(int logLevel)
public void trace(Object message)
trace in interface org.apache.commons.logging.Logpublic void trace(Object message, Throwable t)
trace in interface org.apache.commons.logging.Logpublic void debug(Object message)
debug in interface org.apache.commons.logging.Logpublic void debug(Object message, Throwable t)
debug in interface org.apache.commons.logging.Logpublic void info(Object message)
info in interface org.apache.commons.logging.Logpublic void info(Object message, Throwable t)
info in interface org.apache.commons.logging.Logpublic void warn(Object message)
warn in interface org.apache.commons.logging.Logpublic void warn(Object message, Throwable t)
warn in interface org.apache.commons.logging.Logpublic void error(Object message)
error in interface org.apache.commons.logging.Logpublic void error(Object message, Throwable t)
error in interface org.apache.commons.logging.Logpublic void fatal(Object message)
fatal in interface org.apache.commons.logging.Logpublic void fatal(Object message, Throwable t)
fatal in interface org.apache.commons.logging.Logpublic boolean isDebugEnabled()
isDebugEnabled in interface org.apache.commons.logging.Logpublic boolean isErrorEnabled()
isErrorEnabled in interface org.apache.commons.logging.Logpublic boolean isFatalEnabled()
isFatalEnabled in interface org.apache.commons.logging.Logpublic boolean isInfoEnabled()
isInfoEnabled in interface org.apache.commons.logging.Logpublic boolean isTraceEnabled()
isTraceEnabled in interface org.apache.commons.logging.Logpublic boolean isWarnEnabled()
isWarnEnabled in interface org.apache.commons.logging.LogCopyright © 2018. All rights reserved.