Package org.apache.log4j.pattern
package org.apache.log4j.pattern
Provides classes implementing format specifiers in conversion patterns.
-
ClassesClassDescriptionThe class implements the pre log4j 1.3 org.apache.log4j.helpers.PatternConverter contract by delegating to the log4j 1.3 pattern implementation.The class implements the pre log4j 1.3 org.apache.log4j.helpers.PatternConverter contract by delegating to the log4j 1.3 pattern implementation.CachedDateFormat optimizes the performance of a wrapped DateFormat.Formats the class name of the site of the logging request.Convert and format the event's date in a StringBuffer.Formats an date by delegating to DatePatternConverter.Return the event's line location information in a StringBuffer.Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.Format the event's line location information.Formats an integer.Return the event's level in a StringBuffer.Return the event's line location information in a StringBuffer.Formats a line separator.Formats a string literal.This class is a copy of o.a.l.spi.LoggingEvent from log4j 1.2.15 which has been renamed to keep the same overall class name length to allow a serialization written with a prior instance of o.a.l.spi.LoggingEvent to be deserialized with this class just by mangling the class name in the byte stream.Formats a logger name.LoggingEventPatternConverter is a base class for pattern converters that can format information from instances of LoggingEvent.Return the event's rendered message in a StringBuffer.Return the event's line location information in a StringBuffer.NameAbbreviator generates abbreviated logger and class names.Base class for other pattern converters which can return only parts of their name.Return the event's NDC in a StringBuffer.PatternConverter is an abstract class that provides the formatting functionality that derived classes need.Most of the work of the
EnhancedPatternLayout
class is delegated to the PatternParser class.Able to handle the contents of the LoggingEvent's Property bundle and either output the entire contents of the properties in a similar format to the java.util.Hashtable.toString(), or to output the value of a specific key within the property bundle when this pattern converter has the option set.Return the relative time in milliseconds since loading of the LoggingEvent class.Formats the event sequence number.Formats the event thread name.Outputs the ThrowableInformation portion of the LoggingEvent.