jpl.mipl.pgs.utils.logging
Class LogMessageFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by jpl.mipl.pgs.utils.logging.LogMessageFormatter

Deprecated. Use LoggerFactory instead.

public class LogMessageFormatter
extends Formatter

This class is utilized by the logger for formatting log messages. @see java.util.logging for more details.


     Copyright 2002, California Institute of Technology. 
     ALL RIGHTS RESERVED.
     U.S. Government Sponsorship acknowledge.2004.

 

Version:
1.0
Author:
Raj Patel (rrp@mipl.jpl.nasa.gov)

Constructor Summary
LogMessageFormatter()
          Deprecated. Sets the maximum log line size to be 80.
LogMessageFormatter(int maxMsgSize)
          Deprecated. Constructor
 
Method Summary
 String format(LogRecord record)
          Deprecated. Formates the message by prepending the message with a date stamp and enclosing the message into level label (eg.
 
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

LogMessageFormatter

public LogMessageFormatter()
                    throws IllegalArgumentException
Deprecated. 
Sets the maximum log line size to be 80. A message with length greater than 80 will be divided into several lines.

Throws:
IllegalArgumentException

LogMessageFormatter

public LogMessageFormatter(int maxMsgSize)
                    throws IllegalArgumentException
Deprecated. 
Constructor

Parameters:
maxMsgSize - Sets the maximum log line size to be maxMsgSize. A message with length greater than 80 will be divided into several lines.
Throws:
IllegalArgumentException
Method Detail

format

public String format(LogRecord record)
Deprecated. 
Formates the message by prepending the message with a date stamp and enclosing the message into level label (eg. )

Specified by:
format in class Formatter