org.apache.tomcat.util.log
Class CommonLogHandler
java.lang.Object
org.apache.tomcat.util.log.LogHandler
org.apache.tomcat.util.log.CommonLogHandler
public class CommonLogHandler
- extends LogHandler
Log using common-logging.
- Author:
- Costin Manolache
|
Method Summary |
void |
close()
Close the log. |
void |
flush()
Flush the log. |
void |
log(String prefix,
String msg,
Throwable t,
int verbosityLevel)
Prints log message and stack trace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonLogHandler
public CommonLogHandler()
log
public void log(String prefix,
String msg,
Throwable t,
int verbosityLevel)
- Prints log message and stack trace.
This method should be overriden by real logger implementations
- Overrides:
log in class LogHandler
- Parameters:
prefix - optional prefix.message - the message to log.t - the exception that was thrown.verbosityLevel - what type of message is this?
(WARNING/DEBUG/INFO etc)
flush
public void flush()
- Flush the log.
- Overrides:
flush in class LogHandler
close
public void close()
- Close the log.
- Overrides:
close in class LogHandler
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.