public class ConsoleLogHandler
extends java.util.logging.Handler
| Constructor and Description |
|---|
ConsoleLogHandler()
Default constructor.
|
ConsoleLogHandler(java.util.logging.Formatter formatter)
Construct handler with using giver formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
defaultConsoleLogging(java.util.logging.Level logLevel)
Setup this handler as the only one root handler.
|
void |
flush() |
void |
publish(java.util.logging.LogRecord record)
Prints the log record to the console using the current formatter, if the
log record is loggable.
|
public ConsoleLogHandler()
public ConsoleLogHandler(java.util.logging.Formatter formatter)
formatter - console log formatter, non-null.public void close()
throws java.lang.SecurityException
close in class java.util.logging.Handlerjava.lang.SecurityExceptionHandler.close()public void flush()
flush in class java.util.logging.HandlerHandler.flush()public void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.Handlerrecord - the log record to publishHandler.publish(java.util.logging.LogRecord)public static void defaultConsoleLogging(java.util.logging.Level logLevel)
logLevel - root log level to be set.