org.openmdx.kernel.log.impl
Class LogFormatField

java.lang.Object
  extended by org.openmdx.kernel.log.impl.LogFormatField
All Implemented Interfaces:
Cloneable

public class LogFormatField
extends Object
implements Cloneable

This class holds represents the log event parameters


Field Summary
static String DEFAULT_DATE_FORMAT
          The default date format
 int field
           
static int FIELD_APPID
           
static int FIELD_CFGNAME
           
static int FIELD_CLASS
           
static int FIELD_DETAIL
           
static int FIELD_GROUP
           
static int FIELD_HOST
           
static int FIELD_LEVEL
           
static int FIELD_LINE
           
static int FIELD_LOGGER
           
static int FIELD_LOGSOURCE
           
static int FIELD_METHOD
           
static int FIELD_PID
           
static int FIELD_RECORD
           
static int FIELD_SUMMARY
           
static int FIELD_TEXT
           
static int FIELD_THREAD
           
static int FIELD_TIME
           
 String format
           
 String value
           
 
Constructor Summary
LogFormatField(int field)
           
LogFormatField(int field, String value)
           
LogFormatField(int field, String value, String format)
           
 
Method Summary
 Object clone()
           
static LogFormatField[] createFormat(String logFormat)
          Factory method to create the format information array The logFormat string follows the format
 int getField()
           
 String getFormat()
           
 String getValue()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATE_FORMAT

public static final String DEFAULT_DATE_FORMAT
The default date format

See Also:
Constant Field Values

FIELD_LOGGER

public static final int FIELD_LOGGER
See Also:
Constant Field Values

FIELD_TIME

public static final int FIELD_TIME
See Also:
Constant Field Values

FIELD_LEVEL

public static final int FIELD_LEVEL
See Also:
Constant Field Values

FIELD_CFGNAME

public static final int FIELD_CFGNAME
See Also:
Constant Field Values

FIELD_APPID

public static final int FIELD_APPID
See Also:
Constant Field Values

FIELD_LOGSOURCE

public static final int FIELD_LOGSOURCE
See Also:
Constant Field Values

FIELD_HOST

public static final int FIELD_HOST
See Also:
Constant Field Values

FIELD_PID

public static final int FIELD_PID
See Also:
Constant Field Values

FIELD_THREAD

public static final int FIELD_THREAD
See Also:
Constant Field Values

FIELD_CLASS

public static final int FIELD_CLASS
See Also:
Constant Field Values

FIELD_METHOD

public static final int FIELD_METHOD
See Also:
Constant Field Values

FIELD_LINE

public static final int FIELD_LINE
See Also:
Constant Field Values

FIELD_SUMMARY

public static final int FIELD_SUMMARY
See Also:
Constant Field Values

FIELD_DETAIL

public static final int FIELD_DETAIL
See Also:
Constant Field Values

FIELD_TEXT

public static final int FIELD_TEXT
See Also:
Constant Field Values

FIELD_GROUP

public static final int FIELD_GROUP
See Also:
Constant Field Values

FIELD_RECORD

public static final int FIELD_RECORD
See Also:
Constant Field Values

field

public int field

value

public String value

format

public String format
Constructor Detail

LogFormatField

public LogFormatField(int field)

LogFormatField

public LogFormatField(int field,
                      String value)

LogFormatField

public LogFormatField(int field,
                      String value,
                      String format)
Method Detail

getField

public int getField()

getValue

public String getValue()

getFormat

public String getFormat()

clone

public Object clone()
Overrides:
clone in class Object

createFormat

public static LogFormatField[] createFormat(String logFormat)
Factory method to create the format information array The logFormat string follows the format

E.g.: "${logger}|${time}|${level}|${class}|${method}|${line}|${summary}"

Possible values are:

     ${logger}
     ${time}
     ${level}
     ${cfgname}
     ${appid}
     ${logsource}
     ${host}
     ${pid}
     ${thread}
     ${class}
     ${method}
     ${line}
     ${summary}
     ${detail}
     ${group}
     ${record}
 

Parameters:
logFormat - A log format string


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.