|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.logging.BaseLogger
Classes that implement the Logger interface allows loging. There is set of standart printing methods (info, debug ...). This is a wrapper for the commons Log object.
Field Summary |
Fields inherited from interface org.apache.turbine.services.logging.Logger |
BACKUP_KEY, CONSOLE_KEY, DB_KEY, DB_LOGGER_KEY, DB_POOL_KEY, DEBUG, EMAIL_KEY, EMAILBUFFERSIZE_KEY, EMAILFROM_KEY, EMAILSUBJECT_KEY, EMAILTO_KEY, ERROR, FACILITY_KEY, FILE_KEY, FORMAT_KEY, HOST_KEY, INFO, LEVELDEBUG, LEVELERROR, LEVELINFO, LEVELWARN, PATH_KEY, PORT_KEY, REMOTE_KEY, SIZE_KEY, SYSLOGD_KEY, WARN |
Constructor Summary | |
BaseLogger(JetspeedLogger log)
Parametrized constructor |
Method Summary | |
boolean |
checkLogger()
This method should be implemented by user. |
void |
debug(java.lang.String message)
This is a log method with logLevel == DEBUG |
void |
debug(java.lang.String message,
org.apache.turbine.util.RunData data)
This is a log method with logLevel == DEBUG |
void |
debug(java.lang.String message,
org.apache.turbine.util.RunData data,
java.lang.Throwable t)
This is a log method with logLevel == DEBUG |
void |
debug(java.lang.String message,
java.lang.Throwable t)
This is a log method with logLevel == DEBUG |
void |
error(java.lang.String message)
This is a log method with logLevel == ERROR |
void |
error(java.lang.String message,
org.apache.turbine.util.RunData data)
This is a log method with logLevel == ERROR |
void |
error(java.lang.String message,
org.apache.turbine.util.RunData data,
java.lang.Throwable e)
This is a log method with logLevel == ERROR |
void |
error(java.lang.String message,
java.lang.Throwable e)
This is a log method with logLevel == ERROR |
void |
error(java.lang.Throwable e)
This is a log method with logLevel == ERROR |
JetspeedLogger |
getLog()
Reference to logger |
java.lang.String |
getName()
name of the logger |
void |
info(java.lang.String message)
This is a log method with logLevel == INFO |
void |
info(java.lang.String message,
org.apache.turbine.util.RunData data)
This is a log method with logLevel == INFO |
void |
info(java.lang.String message,
org.apache.turbine.util.RunData data,
java.lang.Throwable t)
This is a log method with logLevel == INFO |
void |
info(java.lang.String message,
java.lang.Throwable t)
This is a log method with logLevel == INFO |
void |
init(org.apache.turbine.services.logging.LoggingConfig loggingConfig)
This method sets parameters for the logger implementation. |
boolean |
isDebugEnabled()
Checks if DEBUG statements are enabled. |
boolean |
isErrorEnabled()
Checks if ERROR statements are enabled. |
boolean |
isInfoEnabled()
Checks if INFO statements are enabled. |
boolean |
isWarnEnabled()
Checks if WARN statements are enabled. |
void |
setFormat(java.lang.String format)
Sets format style for extracting data from RunData |
void |
setLog(JetspeedLogger log)
Sets reference to JetspeedLogger |
void |
setLogLevel(int level)
Sets log level for the logger |
void |
setName(java.lang.String logName)
Setings the name |
void |
shutdown()
Close all destinations |
void |
warn(java.lang.String message)
This is a log method with logLevel == WARN |
void |
warn(java.lang.String message,
org.apache.turbine.util.RunData data)
This is a log method with logLevel == WARN |
void |
warn(java.lang.String message,
org.apache.turbine.util.RunData data,
java.lang.Throwable t)
This is a log method with logLevel == WARN |
void |
warn(java.lang.String message,
java.lang.Throwable t)
This is a log method with logLevel == WARN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseLogger(JetspeedLogger log)
log
- Method Detail |
public java.lang.String getName()
getName
in interface org.apache.turbine.services.logging.Logger
public void setName(java.lang.String logName)
setName
in interface org.apache.turbine.services.logging.Logger
logName
- public JetspeedLogger getLog()
public void setLog(JetspeedLogger log)
log
- public boolean checkLogger()
checkLogger
in interface org.apache.turbine.services.logging.Logger
public void init(org.apache.turbine.services.logging.LoggingConfig loggingConfig)
init
in interface org.apache.turbine.services.logging.Logger
public void shutdown()
shutdown
in interface org.apache.turbine.services.logging.Logger
public void setLogLevel(int level)
setLogLevel
in interface org.apache.turbine.services.logging.Logger
level
- public boolean isDebugEnabled()
isDebugEnabled
in interface org.apache.turbine.services.logging.Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface org.apache.turbine.services.logging.Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface org.apache.turbine.services.logging.Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface org.apache.turbine.services.logging.Logger
public void setFormat(java.lang.String format)
setFormat
in interface org.apache.turbine.services.logging.Logger
format
- public void debug(java.lang.String message)
debug
in interface org.apache.turbine.services.logging.Logger
message
- public void debug(java.lang.String message, java.lang.Throwable t)
debug
in interface org.apache.turbine.services.logging.Logger
message
- t
- public void debug(java.lang.String message, org.apache.turbine.util.RunData data)
debug
in interface org.apache.turbine.services.logging.Logger
message
- data
- public void debug(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
debug
in interface org.apache.turbine.services.logging.Logger
message
- data
- t
- public void info(java.lang.String message)
info
in interface org.apache.turbine.services.logging.Logger
message
- public void info(java.lang.String message, java.lang.Throwable t)
info
in interface org.apache.turbine.services.logging.Logger
message
- t
- public void info(java.lang.String message, org.apache.turbine.util.RunData data)
info
in interface org.apache.turbine.services.logging.Logger
message
- data
- public void info(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
info
in interface org.apache.turbine.services.logging.Logger
message
- data
- t
- public void warn(java.lang.String message)
warn
in interface org.apache.turbine.services.logging.Logger
message
- public void warn(java.lang.String message, java.lang.Throwable t)
warn
in interface org.apache.turbine.services.logging.Logger
message
- t
- public void warn(java.lang.String message, org.apache.turbine.util.RunData data)
warn
in interface org.apache.turbine.services.logging.Logger
message
- data
- public void warn(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
warn
in interface org.apache.turbine.services.logging.Logger
message
- data
- t
- public void error(java.lang.String message)
error
in interface org.apache.turbine.services.logging.Logger
message
- public void error(java.lang.String message, java.lang.Throwable e)
error
in interface org.apache.turbine.services.logging.Logger
message
- e
- public void error(java.lang.Throwable e)
error
in interface org.apache.turbine.services.logging.Logger
e
- public void error(java.lang.String message, org.apache.turbine.util.RunData data)
error
in interface org.apache.turbine.services.logging.Logger
message
- data
- public void error(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable e)
error
in interface org.apache.turbine.services.logging.Logger
message
- data
- e
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |