Class Overview
A Log4JLogRecord
encapsulates
the details of your log4j LoggingEvent
in a format usable
by the LogBrokerMonitor
.
Summary
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
String
|
getCategory()
Get the category asscociated with this LogRecord.
|
LogLevel
|
getLevel()
Get the level of this LogRecord.
|
String
|
getLocation()
Get the location in code where this LogRecord originated.
|
String
|
getMessage()
Get the message asscociated with this LogRecord.
|
long
|
getMillis()
Get the event time of this record in milliseconds from 1970.
|
String
|
getNDC()
Get the NDC (nested diagnostic context) for this record.
|
synchronized
static
long
|
getNextId()
|
long
|
getSequenceNumber()
Get the sequence number associated with this LogRecord.
|
String
|
getThreadDescription()
Get the thread description asscociated with this LogRecord.
|
Throwable
|
getThrown()
Get the Throwable associated with this LogRecord.
|
String
|
getThrownStackTrace()
Get the stack trace in a String-based format for the associated Throwable
of this LogRecord.
|
boolean
|
hasThrown()
|
boolean
|
isFatal()
|
abstract
boolean
|
isSevereLevel()
Abstract method.
|
synchronized
static
void
|
resetSequenceNumber()
Resets that sequence number to 0.
|
void
|
setCategory(String category)
Set the category associated with this LogRecord.
|
void
|
setLevel(LogLevel level)
Set the level of this LogRecord.
|
void
|
setLocation(String location)
Set the location in code where this LogRecord originated.
|
void
|
setMessage(String message)
Set the message associated with this LogRecord.
|
void
|
setMillis(long millis)
Set the event time of this record.
|
void
|
setNDC(String ndc)
Set the NDC (nested diagnostic context) for this record.
|
void
|
setSequenceNumber(long number)
Set the sequence number assocsiated with this LogRecord.
|
void
|
setThreadDescription(String threadDescription)
Set the thread description associated with this LogRecord.
|
void
|
setThrown(Throwable thrown)
Set the Throwable associated with this LogRecord.
|
void
|
setThrownStackTrace(String trace)
Set the ThrownStackTrace for the log record.
|
String
|
toString()
Return a String representation of this LogRecord.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
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. |