org.openmdx.kernel.log.impl
Class LogFormatField
java.lang.Object
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
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
LogFormatField
public LogFormatField(int field)
LogFormatField
public LogFormatField(int field,
String value)
LogFormatField
public LogFormatField(int field,
String value,
String format)
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.