Class LogEventImpl
- java.lang.Object
-
- com.sun.enterprise.server.logging.LogEventImpl
-
-
Constructor Summary
Constructors Constructor Description LogEventImpl()
LogEventImpl(LogRecord rec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentId()
Integer value of the log Level.String
getLevel()
The name of the Level for this event.int
getLevelValue()
String
getLogger()
Logger name identifying the source of this event.String
getMessage()
The message body including the stack trace of the associated Exception.String
getMessageId()
The message id for this log event.Map<String,Object>
getSupplementalAttributes()
Optional name-value pairs associated with this log event.long
getThreadId()
The thread ID where this log event originated.String
getThreadName()
Thread name from where this log event originated.long
getTimeMillis()
Raw timestamp in milliseconds.String
getTimestamp()
The formatted timestamp in the log event.void
setComponentId(String componentId)
void
setLevel(String level)
void
setLevelValue(int levelValue)
void
setLogger(String logger)
void
setMessage(String message)
void
setMessageId(String messageId)
void
setThreadId(long threadId)
void
setThreadName(String threadName)
void
setTimeMillis(long timeMillis)
void
setTimestamp(String timestamp)
-
-
-
Constructor Detail
-
LogEventImpl
public LogEventImpl()
-
LogEventImpl
public LogEventImpl(LogRecord rec)
-
-
Method Detail
-
getComponentId
public String getComponentId()
Description copied from interface:LogEvent
Integer value of the log Level.- Specified by:
getComponentId
in interfaceLogEvent
- Returns:
-
getLevel
public String getLevel()
Description copied from interface:LogEvent
The name of the Level for this event.
-
getLevelValue
public int getLevelValue()
- Specified by:
getLevelValue
in interfaceLogEvent
- Returns:
-
getLogger
public String getLogger()
Description copied from interface:LogEvent
Logger name identifying the source of this event.
-
getMessage
public String getMessage()
Description copied from interface:LogEvent
The message body including the stack trace of the associated Exception.- Specified by:
getMessage
in interfaceLogEvent
- Returns:
-
getMessageId
public String getMessageId()
Description copied from interface:LogEvent
The message id for this log event.- Specified by:
getMessageId
in interfaceLogEvent
- Returns:
-
getSupplementalAttributes
public Map<String,Object> getSupplementalAttributes()
Description copied from interface:LogEvent
Optional name-value pairs associated with this log event.- Specified by:
getSupplementalAttributes
in interfaceLogEvent
- Returns:
-
getThreadId
public long getThreadId()
Description copied from interface:LogEvent
The thread ID where this log event originated.- Specified by:
getThreadId
in interfaceLogEvent
- Returns:
-
getThreadName
public String getThreadName()
Description copied from interface:LogEvent
Thread name from where this log event originated.- Specified by:
getThreadName
in interfaceLogEvent
- Returns:
-
getTimeMillis
public long getTimeMillis()
Description copied from interface:LogEvent
Raw timestamp in milliseconds.- Specified by:
getTimeMillis
in interfaceLogEvent
- Returns:
-
getTimestamp
public String getTimestamp()
Description copied from interface:LogEvent
The formatted timestamp in the log event.- Specified by:
getTimestamp
in interfaceLogEvent
- Returns:
-
setComponentId
public void setComponentId(String componentId)
- Parameters:
componentId
- the componentId to set
-
setLevel
public void setLevel(String level)
- Parameters:
level
- the level to set
-
setLevelValue
public void setLevelValue(int levelValue)
- Parameters:
levelValue
- the levelValue to set
-
setLogger
public void setLogger(String logger)
- Parameters:
logger
- the logger to set
-
setMessage
public void setMessage(String message)
- Parameters:
message
- the message to set
-
setMessageId
public void setMessageId(String messageId)
- Parameters:
messageId
- the messageId to set
-
setThreadId
public void setThreadId(long threadId)
- Parameters:
threadId
- the threadId to set
-
setThreadName
public void setThreadName(String threadName)
- Parameters:
threadName
- the threadName to set
-
setTimeMillis
public void setTimeMillis(long timeMillis)
- Parameters:
timeMillis
- the timeMillis to set
-
setTimestamp
public void setTimestamp(String timestamp)
- Parameters:
timestamp
- the timestamp to set
-
-