Package org.epics.ca.util.logging
Class ConsoleLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- org.epics.ca.util.logging.ConsoleLogHandler
-
public class ConsoleLogHandler extends java.util.logging.HandlerImplementation of Java Logging API handler.
-
-
Constructor Summary
Constructors Constructor Description ConsoleLogHandler()Default constructor.ConsoleLogHandler(java.util.logging.Formatter formatter)Construct handler with using giver formatter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static voiddefaultConsoleLogging(java.util.logging.Level logLevel)Setup this handler as the only one root handler.voidflush()voidpublish(java.util.logging.LogRecord record)Prints the log record to the console using the current formatter, if the log record is loggable.
-
-
-
Method Detail
-
close
public void close() throws java.lang.SecurityException- Specified by:
closein classjava.util.logging.Handler- Throws:
java.lang.SecurityException- See Also:
Handler.close()
-
flush
public void flush()
- Specified by:
flushin classjava.util.logging.Handler- See Also:
Handler.flush()
-
publish
public void publish(java.util.logging.LogRecord record)
Prints the log record to the console using the current formatter, if the log record is loggable.- Specified by:
publishin classjava.util.logging.Handler- Parameters:
record- the log record to publish- See Also:
Handler.publish(java.util.logging.LogRecord)
-
defaultConsoleLogging
public static void defaultConsoleLogging(java.util.logging.Level logLevel)
Setup this handler as the only one root handler.- Parameters:
logLevel- root log level to be set.
-
-