org.jscience.util.logging
Class StringLineFormatter

java.lang.Object
  extended by org.jscience.util.logging.StringLineFormatter
All Implemented Interfaces:
LogEntryFormatter

public class StringLineFormatter
extends java.lang.Object
implements LogEntryFormatter

formats a LogEntry into a simple one-line String terminated by a line break.


Field Summary
protected  java.text.SimpleDateFormat timeFormat
           
 
Constructor Summary
StringLineFormatter()
           
 
Method Summary
 java.lang.Object format(LogEntry entry)
          This method returns a one-line String of the entry terminated by a line separator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeFormat

protected java.text.SimpleDateFormat timeFormat
Constructor Detail

StringLineFormatter

public StringLineFormatter()
Method Detail

format

public java.lang.Object format(LogEntry entry)
This method returns a one-line String of the entry terminated by a line separator. The format is: "[time level] message (param1, param2, ..) (thrown)"
The other parameters are ignored.

Specified by:
format in interface LogEntryFormatter
Parameters:
entry - DOCUMENT ME!
Returns:
DOCUMENT ME!