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

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.cosylab.epics.caj.util.logging.ConsoleLogFormatter

public class ConsoleLogFormatter
extends Formatter

An implementation of java.util.logging.Formatter. Produces single line log reports meant to go to the console.

Author:
Matej Sekoranja (matej.sekoranjaATcosylab.com)

Field Summary
static String KEY_TRACE
          System property key to enable trace messages.
 
Constructor Summary
ConsoleLogFormatter()
           
 
Method Summary
 String format(LogRecord record)
          Format the given LogRecord.
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_TRACE

public static String KEY_TRACE
System property key to enable trace messages.

Constructor Detail

ConsoleLogFormatter

public ConsoleLogFormatter()
Method Detail

format

public String format(LogRecord record)
Format the given LogRecord.

Specified by:
format in class Formatter
Parameters:
record - the log record to be formatted.
Returns:
a formatted log record


Copyright © 2004-2013 Cosylab. All Rights Reserved.