java.lang.Objectorg.apache.log4j.lf5.LogRecord
org.apache.log4j.lf5.util.AdapterLogRecord
A LogRecord to be used with the LogMonitorAdapter
Field Summary |
Fields inherited from class org.apache.log4j.lf5.LogRecord |
_category, _level, _location, _message, _millis, _ndc, _seqCount, _sequenceNumber, _thread, _thrown, _thrownStackTrace |
Constructor Summary | |
AdapterLogRecord()
|
Method Summary | |
protected String |
getLocationInfo(String category)
|
static LogLevel |
getSevereLevel()
|
boolean |
isSevereLevel()
Abstract method. |
protected String |
parseLine(String trace,
String category)
|
void |
setCategory(String category)
Set the category associated with this LogRecord. |
static void |
setSevereLevel(LogLevel level)
|
protected String |
stackTraceToString(Throwable t)
|
Methods inherited from class org.apache.log4j.lf5.LogRecord |
getCategory, getLevel, getLocation, getMessage, getMillis, getNDC, getNextId, getSequenceNumber, getThreadDescription, getThrown, getThrownStackTrace, hasThrown, isFatal, resetSequenceNumber, setLevel, setLocation, setMessage, setMillis, setNDC, setSequenceNumber, setThreadDescription, setThrown, setThrownStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AdapterLogRecord()
Method Detail |
public void setCategory(String category)
LogRecord
When logging messages
for a particluar class you can use its class name:
com.thoughtworks.framework.servlet.ServletServiceBroker.
Futhermore, to log a message for a particular method in a class
add the method name:
com.thoughtworks.framework.servlet.ServletServiceBroker.init().
setCategory
in class LogRecord
category
- The category for this record.LogRecord.getCategory()
public boolean isSevereLevel()
LogRecord
isSevereLevel
in class LogRecord
public static void setSevereLevel(LogLevel level)
public static LogLevel getSevereLevel()
protected String getLocationInfo(String category)
protected String stackTraceToString(Throwable t)
protected String parseLine(String trace, String category)
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.