public enum LogField extends java.lang.Enum<LogField>
| Enum Constant and Description |
|---|
ANTENNA |
ARRAY |
AUDIENCE |
CONTEXT |
ENTRYTYPE |
FILE |
HOST |
LINE |
LOGID |
LOGMESSAGE |
PRIORITY |
PROCESS |
ROUTINE |
SOURCEOBJECT |
STACKID |
STACKLEVEL |
THREAD |
TIMESTAMP |
URI |
| Modifier and Type | Field and Description |
|---|---|
java.lang.Class |
fieldClass
The class of the field
|
char |
id
An identifier of the field used by converter tools like the acsLogAssistant
|
java.lang.String |
name
The name of the field
|
java.lang.String |
tagAttribute
The name of the XML attribute containing this field
It is null for non attribute fields (like the entry type or the log message)
|
| Modifier and Type | Method and Description |
|---|---|
static LogField |
fromID(char id)
Return a
LogField from its id |
static LogField |
fromName(java.lang.String fieldName)
Return a
LogField from its name |
java.lang.String |
getName()
Getter
|
java.lang.String |
getTagAttribute()
Getter
|
java.lang.Class<?> |
getType()
Getter
|
static LogField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogField TIMESTAMP
public static final LogField ENTRYTYPE
public static final LogField SOURCEOBJECT
public static final LogField FILE
public static final LogField LINE
public static final LogField ROUTINE
public static final LogField HOST
public static final LogField PROCESS
public static final LogField CONTEXT
public static final LogField THREAD
public static final LogField LOGID
public static final LogField PRIORITY
public static final LogField URI
public static final LogField STACKID
public static final LogField STACKLEVEL
public static final LogField LOGMESSAGE
public static final LogField AUDIENCE
public static final LogField ARRAY
public static final LogField ANTENNA
public final java.lang.String name
public final java.lang.Class fieldClass
public final java.lang.String tagAttribute
public final char id
public static LogField[] values()
for (LogField c : LogField.values()) System.out.println(c);
public static LogField valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public java.lang.Class<?> getType()
public java.lang.String getTagAttribute()
public static LogField fromName(java.lang.String fieldName)
LogField from its namenull if a field with that name does not existpublic static LogField fromID(char id)
LogField from its id