public class

Log4JLogRecord

extends LogRecord
java.lang.Object
   ↳ org.apache.log4j.lf5.LogRecord
     ↳ org.apache.log4j.lf5.Log4JLogRecord

Class Overview

A Log4JLogRecord encapsulates the details of your log4j LoggingEvent in a format usable by the LogBrokerMonitor.

Summary

[Expand]
Inherited Fields
From class org.apache.log4j.lf5.LogRecord
Public Constructors
Log4JLogRecord()
Constructs an instance of a Log4JLogRecord.
Public Methods
boolean isSevereLevel()
Determines which Priority levels will be displayed in colored font when the LogMonitorAppender renders this log message.
void setThrownStackTrace(ThrowableInformation throwableInfo)
Set stack trace information associated with this Log4JLogRecord.
[Expand]
Inherited Methods
From class org.apache.log4j.lf5.LogRecord
From class java.lang.Object

Public Constructors

public Log4JLogRecord ()

Constructs an instance of a Log4JLogRecord.

Public Methods

public boolean isSevereLevel ()

Determines which Priority levels will be displayed in colored font when the LogMonitorAppender renders this log message. By default, messages will be colored red if they are of Priority ERROR or FATAL.

Returns
  • true if the log level is ERROR or FATAL.

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.