public class CommonLogHandler extends LogHandler
defaultSink, level, sink| Constructor and Description |
|---|
CommonLogHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getLevel, setDefaultSink, setLevelpublic void log(String prefix, String msg, Throwable t, int verbosityLevel)
log in class LogHandlerprefix - optional prefix.message - the message to log.t - the exception that was thrown.verbosityLevel - what type of message is this?
(WARNING/DEBUG/INFO etc)public void flush()
flush in class LogHandlerpublic void close()
close in class LogHandlerCopyright © 2005–2017 Oracle Corporation. All rights reserved.