Interface LogEvent
-
- All Known Implementing Classes:
LogEventImpl,ParsedLogRecord
public interface LogEventEvent describing a log record being written to the log file. This event is issued from the GFFileHandler. Interested parties may register a LogEventListener with the GFFileHandler instance. The GFFileHandler instance may be injected using hk2 mechanisms to get a reference which can be used to register a LogEventListener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetComponentId()Integer value of the log Level.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.
-
-
-
Method Detail
-
getTimestamp
String getTimestamp()
The formatted timestamp in the log event.- Returns:
-
getMessage
String getMessage()
The message body including the stack trace of the associated Exception.- Returns:
-
getLevel
String getLevel()
The name of the Level for this event.- Returns:
-
getLogger
String getLogger()
Logger name identifying the source of this event.- Returns:
-
getLevelValue
int getLevelValue()
- Returns:
-
getComponentId
String getComponentId()
Integer value of the log Level.- Returns:
-
getTimeMillis
long getTimeMillis()
Raw timestamp in milliseconds.- Returns:
-
getMessageId
String getMessageId()
The message id for this log event.- Returns:
-
getThreadId
long getThreadId()
The thread ID where this log event originated.- Returns:
-
getThreadName
String getThreadName()
Thread name from where this log event originated.- Returns:
-
-