Apache Tomcat 6.0.44

Class OneLineFormatter

  extended by java.util.logging.Formatter
      extended by org.apache.juli.OneLineFormatter

public class OneLineFormatter
extends java.util.logging.Formatter

Provides same information as default log format but on a single line to make it easier to grep the logs. The only exception is stacktraces which are always preceded by whitespace to make it simple to skip them.

Constructor Summary
Method Summary
protected  void addTimestamp(java.lang.StringBuilder buf, long timestamp)
 java.lang.String format(java.util.logging.LogRecord record)
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

Constructor Detail


public OneLineFormatter()
Method Detail


public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter


protected void addTimestamp(java.lang.StringBuilder buf,
                            long timestamp)

Apache Tomcat 6.0.44

Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.