DESY ACOP Beans Home

com.cosylab.logging
Class ConsoleLogFormatter

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

public class ConsoleLogFormatter
extends java.util.logging.Formatter

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

Author:
Matej Sekoranja (matej.sekoranjaATcosylab.com)

Field Summary
static java.lang.String KEY_TRACE
          System property key to enable trace messages.
 
Constructor Summary
ConsoleLogFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.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 java.lang.String KEY_TRACE
System property key to enable trace messages.

Constructor Detail

ConsoleLogFormatter

public ConsoleLogFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Format the given LogRecord.

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


Copyright © 2010. All Rights Reserved.