jetif.ext
Class Log4jLogger
java.lang.Object
jetif.ext.Log4jLogger
- All Implemented Interfaces:
- Logger
- public class Log4jLogger
- extends Object
- implements Logger
This class Log4jLogger is a wrapper class of Log4J logger.
It allows the user log message with a Log4J logger.
- Author:
- Vicky Wang
|
Method Summary |
void |
close()
Close this logger |
void |
log(int severity,
String msg)
Log a string message with specified severity level. |
void |
log(String msg)
Log a string message with default severity level. |
void |
log(Throwable e)
Log a exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG4J_CONFIG
public static final String LOG4J_CONFIG
- See Also:
- Constant Field Values
Log4jLogger
public Log4jLogger()
log
public void log(String msg)
- Description copied from interface:
Logger
- Log a string message with default severity level.
- Specified by:
log in interface Logger
- Parameters:
msg - the message content.
log
public void log(int severity,
String msg)
- Description copied from interface:
Logger
- Log a string message with specified severity level.
- Specified by:
log in interface Logger
- Parameters:
severity - the severity levelmsg - the message content.
log
public void log(Throwable e)
- Description copied from interface:
Logger
- Log a exception.
- Specified by:
log in interface Logger
- Parameters:
e - the exception.
close
public void close()
- Description copied from interface:
Logger
- Close this logger
- Specified by:
close in interface Logger
Copyright © 2004,2005 Vicky Wang - All Rights Reserved.