public class

AdapterLogRecord

extends LogRecord
java.lang.Object
   ↳ org.apache.log4j.lf5.LogRecord
     ↳ org.apache.log4j.lf5.util.AdapterLogRecord

Class Overview

A LogRecord to be used with the LogMonitorAdapter

Summary

[Expand]
Inherited Fields
From class org.apache.log4j.lf5.LogRecord
Public Constructors
AdapterLogRecord()
Public Methods
static LogLevel getSevereLevel()
boolean isSevereLevel()
Abstract method.
void setCategory(String category)
Set the category associated with this LogRecord.
static void setSevereLevel(LogLevel level)
Protected Methods
String getLocationInfo(String category)
String parseLine(String trace, String category)
String stackTraceToString(Throwable t)
[Expand]
Inherited Methods
From class org.apache.log4j.lf5.LogRecord
From class java.lang.Object

Public Constructors

public AdapterLogRecord ()

Public Methods

public static LogLevel getSevereLevel ()

public boolean isSevereLevel ()

Abstract method. Must be overridden to indicate what log level to show in red.

public void setCategory (String category)

Set the category associated with this LogRecord. A category represents a hierarchical dot (".") separated namespace for messages. The definition of a category is application specific, but a common convention is as follows:

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().

Parameters
category The category for this record.

public static void setSevereLevel (LogLevel level)

Protected Methods

protected String getLocationInfo (String category)

protected String parseLine (String trace, String category)

protected String stackTraceToString (Throwable t)