PatternConverter ClassApache log4net™ SDK Documentation
Abstract class that provides the formatting functionality that derived classes need.
Inheritance Hierarchy


Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 4.0

public abstract class PatternConverter

The PatternConverter type exposes the following members.


Protected methodPatternConverter
Protected constructor

Public propertyFormattingInfo
Gets or sets the formatting info for this converter
Public propertyNext
Get the next pattern converter in the chain
Public propertyOption
Gets or sets the option value for this converter
Public propertyProperties

Protected methodConvert
Evaluate this pattern converter and write the output to a writer.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat
Write the pattern converter to the writer with appropriate formatting
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetNext
Set the next pattern converter in the chains
Protected methodStatic memberSpacePad
Fast space padding method.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodStatic memberWriteDictionary(TextWriter, ILoggerRepository, IDictionary)
Write an dictionary to a TextWriter
Protected methodStatic memberWriteDictionary(TextWriter, ILoggerRepository, IDictionaryEnumerator)
Write an dictionary to a TextWriter
Protected methodStatic memberWriteObject
Write an object to a TextWriter

Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.

See Also