Package org.apache.log4j.lf5
Class Log4JLogRecord
- java.lang.Object
-
- org.apache.log4j.lf5.LogRecord
-
- org.apache.log4j.lf5.Log4JLogRecord
-
- All Implemented Interfaces:
Serializable
public class Log4JLogRecord extends LogRecord
ALog4JLogRecord
encapsulates the details of your log4jLoggingEvent
in a format usable by theLogBrokerMonitor
.- Author:
- Brent Sprecher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Log4JLogRecord()
Constructs an instance of aLog4JLogRecord
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSevereLevel()
Determines whichPriority
levels will be displayed in colored font when theLogMonitorAppender
renders this log message.void
setThrownStackTrace(ThrowableInformation throwableInfo)
Set stack trace information associated with this Log4JLogRecord.-
Methods inherited from class org.apache.log4j.lf5.LogRecord
getCategory, getLevel, getLocation, getMessage, getMillis, getNDC, getNextId, getSequenceNumber, getThreadDescription, getThrown, getThrownStackTrace, hasThrown, isFatal, resetSequenceNumber, setCategory, setLevel, setLocation, setMessage, setMillis, setNDC, setSequenceNumber, setThreadDescription, setThrown, setThrownStackTrace, toString
-
-
-
-
Method Detail
-
isSevereLevel
public boolean isSevereLevel()
Determines whichPriority
levels will be displayed in colored font when theLogMonitorAppender
renders this log message. By default, messages will be colored red if they are ofPriority
ERROR or FATAL.- Specified by:
isSevereLevel
in classLogRecord
- Returns:
- true if the log level is ERROR or FATAL.
-
setThrownStackTrace
public void setThrownStackTrace(ThrowableInformation throwableInfo)
Set stack trace information associated with this Log4JLogRecord. When this method is called, the stack trace in a String-based format is made available via the getThrownStackTrace() method.- Parameters:
throwableInfo
- An org.apache.log4j.spi.ThrowableInformation to associate with this Log4JLogRecord.- See Also:
LogRecord.getThrownStackTrace()
-
-