php.java.servlet
Class Logger
java.lang.Object
php.java.servlet.Logger
- All Implemented Interfaces:
- ILogger
public class Logger
- extends java.lang.Object
- implements ILogger
A logger class, uses log4j if possible
Method Summary |
void |
log(int level,
java.lang.String s)
Log a message. |
void |
printStackTrace(java.lang.Throwable t)
Log a stack trace |
void |
warn(java.lang.String msg)
Display a warning if logLevel >= 1 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Logger
public Logger()
log
public void log(int level,
java.lang.String s)
- Log a message.
- Specified by:
log
in interface ILogger
- Parameters:
level
- The log level 0: FATAL, 1:ERROR, 2: INFO, 3: DEBUGs
- The message
printStackTrace
public void printStackTrace(java.lang.Throwable t)
- Log a stack trace
- Specified by:
printStackTrace
in interface ILogger
- Parameters:
t
- The Throwable
warn
public void warn(java.lang.String msg)
- Display a warning if logLevel >= 1
- Specified by:
warn
in interface ILogger
- Parameters:
msg
- The warn message