构造器和说明 |
---|
AdapterLogRecord() |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
getLocationInfo(java.lang.String category) |
static LogLevel |
getSevereLevel() |
boolean |
isSevereLevel()
Abstract method.
|
protected java.lang.String |
parseLine(java.lang.String trace,
java.lang.String category) |
void |
setCategory(java.lang.String category)
Set the category associated with this LogRecord.
|
static void |
setSevereLevel(LogLevel level) |
protected java.lang.String |
stackTraceToString(java.lang.Throwable t) |
getCategory, getLevel, getLocation, getMessage, getMillis, getNDC, getNextId, getSequenceNumber, getThreadDescription, getThrown, getThrownStackTrace, hasThrown, isFatal, resetSequenceNumber, setLevel, setLocation, setMessage, setMillis, setNDC, setSequenceNumber, setThreadDescription, setThrown, setThrownStackTrace, toString
public void setCategory(java.lang.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
在类中 LogRecord
category
- The category for this record.LogRecord.getCategory()
public boolean isSevereLevel()
LogRecord
isSevereLevel
在类中 LogRecord
public static void setSevereLevel(LogLevel level)
public static LogLevel getSevereLevel()
protected java.lang.String getLocationInfo(java.lang.String category)
protected java.lang.String stackTraceToString(java.lang.Throwable t)
protected java.lang.String parseLine(java.lang.String trace, java.lang.String category)