Top Description Fields Constructors Methods
org.apache.log.output.lf5

public Class LogKitLogRecord

extends LogRecord
Class Inheritance
Imports
java.util.Arrays, .List, org.apache.log.ContextMap, .LogEvent, .Logger, .Priority, org.apache.log.format.Formatter, org.apache.log.util.StackIntrospector, org.apache.log4j.lf5.LogLevel, .LogRecord

An implementation of a LogFactor5 LogRecord based on a LogKit LogEvent.
Author
Sylvain Wallez
Version
$Id: LogKitLogRecord.java 506267 2007-02-12 04:06:06Z crossley $

Field Summary

Modifier and TypeField and Description
public static final List<E>
LOGKIT_LOGLEVELS

The LogLevels corresponding to LogKit priorities.

private boolean
m_severe

Is this a severe event ?

Inherited from org.apache.log4j.lf5.LogRecord:
_category_level_location_message_millis_ndc_seqCount_sequenceNumber_thread_thrown_thrownStackTrace

Constructor Summary

AccessConstructor and Description
public
LogKitLogRecord(final LogEvent event, final Formatter fmt)

Create a LogFactor record from a LogKit event

Method Summary

Modifier and TypeMethod and Description
public boolean
isSevereLevel()

Implements abstract org.apache.log4j.lf5.LogRecord.isSevereLevel.

Abstract method.
public LogLevel
toLogLevel(final Priority priority)

Convert a LogKit Priority to a LogFactor LogLevel.

Inherited from org.apache.log4j.lf5.LogRecord:
getCategorygetLevelgetLocationgetMessagegetMillisgetNDCgetNextIdgetSequenceNumbergetThreadDescriptiongetThrowngetThrownStackTracehasThrownisFatalresetSequenceNumbersetCategorysetLevelsetLocationsetMessagesetMillissetNDCsetSequenceNumbersetThreadDescriptionsetThrownsetThrownStackTracetoString

Field Detail

LOGKIT_LOGLEVELSback to summary
public static final List<E> LOGKIT_LOGLEVELS

The LogLevels corresponding to LogKit priorities.

m_severeback to summary
private boolean m_severe

Is this a severe event ?

Constructor Detail

LogKitLogRecordback to summary
public LogKitLogRecord(final LogEvent event, final Formatter fmt)

Create a LogFactor record from a LogKit event

Method Detail

isSevereLevelback to summary
public boolean isSevereLevel()

Implements abstract org.apache.log4j.lf5.LogRecord.isSevereLevel.

Doc from org.apache.log4j.lf5.LogRecord.isSevereLevel.

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

toLogLevelback to summary
public LogLevel toLogLevel(final Priority priority)

Convert a LogKit Priority to a LogFactor LogLevel.