com.cosylab.epics.caj.util.logging
Class ConsoleLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.cosylab.epics.caj.util.logging.ConsoleLogHandler

public class ConsoleLogHandler
extends Handler

Implementation of Java Logging API handler.

Version:
$id$
Author:
Matej Sekoranja

Constructor Summary
ConsoleLogHandler()
          Default constructor.
ConsoleLogHandler(Formatter formatter)
          Construct handler with using giver formatter.
 
Method Summary
 void close()
           
 void flush()
           
 void publish(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

ConsoleLogHandler

public ConsoleLogHandler()
Default constructor.


ConsoleLogHandler

public ConsoleLogHandler(Formatter formatter)
Construct handler with using giver formatter.

Parameters:
formatter - console log formatter, non-null.
Method Detail

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException
See Also:
Handler.close()

flush

public void flush()
Specified by:
flush in class Handler
See Also:
Handler.flush()

publish

public void publish(LogRecord record)
Prints the log record to the console using the current formatter, if the log record is loggable.

Specified by:
publish in class Handler
Parameters:
record - the log record to publish
See Also:
Handler.publish(java.util.logging.LogRecord)


Copyright © 2004-2013 Cosylab. All Rights Reserved.