|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.logging.Handler com.cosylab.logging.ConsoleLogHandler
public class ConsoleLogHandler
Implementation of Java Logging API handler.
Constructor Summary | |
---|---|
ConsoleLogHandler()
Default constructor. |
|
ConsoleLogHandler(java.util.logging.Formatter formatter)
Construct handler with using giver formatter. |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
static void |
initializeConsoleLogging()
Overrides default JVM logging configuration. |
static void |
main(java.lang.String[] args)
Simple test. |
void |
publish(java.util.logging.LogRecord record)
Prints the log record to the console using the current formatter, if the log record is loggable. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleLogHandler()
public ConsoleLogHandler(java.util.logging.Formatter formatter)
formatter
- console log formatter, non-null
.Method Detail |
---|
public void close() throws java.lang.SecurityException
close
in class java.util.logging.Handler
java.lang.SecurityException
Handler.close()
public void flush()
flush
in class java.util.logging.Handler
Handler.flush()
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
record
- the log record to publishHandler.publish(java.util.logging.LogRecord)
public static void initializeConsoleLogging()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |