Class ParsedLogRecord
- java.lang.Object
-
- com.sun.enterprise.server.logging.parser.ParsedLogRecord
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATE_TIMEstatic Set<String>FIELD_NAMESstatic StringLOG_LEVEL_NAMEstatic StringLOG_LEVEL_VALUEstatic StringLOG_MESSAGEstatic StringLOGGER_NAMEstatic StringMESSAGE_IDstatic StringPRODUCT_IDstatic StringSUPP_ATTRSstatic StringTHREAD_IDstatic StringTHREAD_NAMEstatic StringTIME_MILLIS
-
Constructor Summary
Constructors Constructor Description ParsedLogRecord()ParsedLogRecord(String formattedContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComponentId()Integer value of the log Level.ObjectgetFieldValue(String name)StringgetFormattedLogRecord()StringgetLevel()The name of the Level for this event.intgetLevelValue()StringgetLogger()Logger name identifying the source of this event.StringgetMessage()The message body including the stack trace of the associated Exception.StringgetMessageId()The message id for this log event.Map<String,Object>getSupplementalAttributes()Optional name-value pairs associated with this log event.longgetThreadId()The thread ID where this log event originated.StringgetThreadName()Thread name from where this log event originated.longgetTimeMillis()Raw timestamp in milliseconds.StringgetTimestamp()The formatted timestamp in the log event.booleanisMatchedLogQuery()StringtoString()
-
-
-
Field Detail
-
DATE_TIME
public static final String DATE_TIME
- See Also:
- Constant Field Values
-
LOG_LEVEL_NAME
public static final String LOG_LEVEL_NAME
- See Also:
- Constant Field Values
-
PRODUCT_ID
public static final String PRODUCT_ID
- See Also:
- Constant Field Values
-
LOGGER_NAME
public static final String LOGGER_NAME
- See Also:
- Constant Field Values
-
THREAD_ID
public static final String THREAD_ID
- See Also:
- Constant Field Values
-
THREAD_NAME
public static final String THREAD_NAME
- See Also:
- Constant Field Values
-
TIME_MILLIS
public static final String TIME_MILLIS
- See Also:
- Constant Field Values
-
LOG_LEVEL_VALUE
public static final String LOG_LEVEL_VALUE
- See Also:
- Constant Field Values
-
LOG_MESSAGE
public static final String LOG_MESSAGE
- See Also:
- Constant Field Values
-
SUPP_ATTRS
public static final String SUPP_ATTRS
- See Also:
- Constant Field Values
-
MESSAGE_ID
public static final String MESSAGE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParsedLogRecord
public ParsedLogRecord()
-
ParsedLogRecord
public ParsedLogRecord(String formattedContent)
-
-
Method Detail
-
getTimestamp
public String getTimestamp()
Description copied from interface:LogEventThe formatted timestamp in the log event.- Specified by:
getTimestampin interfaceLogEvent- Returns:
-
getMessage
public String getMessage()
Description copied from interface:LogEventThe message body including the stack trace of the associated Exception.- Specified by:
getMessagein interfaceLogEvent- Returns:
-
getLevel
public String getLevel()
Description copied from interface:LogEventThe name of the Level for this event.
-
getLogger
public String getLogger()
Description copied from interface:LogEventLogger name identifying the source of this event.
-
getLevelValue
public int getLevelValue()
- Specified by:
getLevelValuein interfaceLogEvent- Returns:
-
getComponentId
public String getComponentId()
Description copied from interface:LogEventInteger value of the log Level.- Specified by:
getComponentIdin interfaceLogEvent- Returns:
-
getTimeMillis
public long getTimeMillis()
Description copied from interface:LogEventRaw timestamp in milliseconds.- Specified by:
getTimeMillisin interfaceLogEvent- Returns:
-
getMessageId
public String getMessageId()
Description copied from interface:LogEventThe message id for this log event.- Specified by:
getMessageIdin interfaceLogEvent- Returns:
-
getThreadId
public long getThreadId()
Description copied from interface:LogEventThe thread ID where this log event originated.- Specified by:
getThreadIdin interfaceLogEvent- Returns:
-
getThreadName
public String getThreadName()
Description copied from interface:LogEventThread name from where this log event originated.- Specified by:
getThreadNamein interfaceLogEvent- Returns:
-
getSupplementalAttributes
public Map<String,Object> getSupplementalAttributes()
Description copied from interface:LogEventOptional name-value pairs associated with this log event.- Specified by:
getSupplementalAttributesin interfaceLogEvent- Returns:
-
getFormattedLogRecord
public String getFormattedLogRecord()
-
isMatchedLogQuery
public boolean isMatchedLogQuery()
- Returns:
- the matchedLogQuery
-
-