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 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.voidsetComponentId(String componentId)voidsetLevel(String level)voidsetLevelValue(int levelValue)voidsetLogger(String logger)voidsetMessage(String message)voidsetMessageId(String messageId)voidsetThreadId(long threadId)voidsetThreadName(String threadName)voidsetTimeMillis(long timeMillis)voidsetTimestamp(String timestamp)
-
-
-
Constructor Detail
-
LogEventImpl
public LogEventImpl()
-
LogEventImpl
public LogEventImpl(LogRecord rec)
-
-
Method Detail
-
getComponentId
public String getComponentId()
Description copied from interface:LogEventInteger value of the log Level.- Specified by:
getComponentIdin interfaceLogEvent- Returns:
-
getLevel
public String getLevel()
Description copied from interface:LogEventThe name of the Level for this event.
-
getLevelValue
public int getLevelValue()
- Specified by:
getLevelValuein interfaceLogEvent- Returns:
-
getLogger
public String getLogger()
Description copied from interface:LogEventLogger name identifying the source of this event.
-
getMessage
public String getMessage()
Description copied from interface:LogEventThe message body including the stack trace of the associated Exception.- Specified by:
getMessagein interfaceLogEvent- Returns:
-
getMessageId
public String getMessageId()
Description copied from interface:LogEventThe message id for this log event.- Specified by:
getMessageIdin 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:
-
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:
-
getTimeMillis
public long getTimeMillis()
Description copied from interface:LogEventRaw timestamp in milliseconds.- Specified by:
getTimeMillisin interfaceLogEvent- Returns:
-
getTimestamp
public String getTimestamp()
Description copied from interface:LogEventThe formatted timestamp in the log event.- Specified by:
getTimestampin 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
-
-