PatternConverter Class | Apache log4net™ SDK Documentation

Abstract class that provides the formatting functionality that derived classes need.
Inheritance Hierarchy

System
Object
log4net.Util
PatternConverter
log4net.Layout.Pattern
PatternLayoutConverter

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public abstract class PatternConverter

    Public MustInherit Class PatternConverter

    public ref class PatternConverter abstract

    [<AbstractClassAttribute>]
    type PatternConverter =  class end

The PatternConverter type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| PatternConverter | Protected constructor

Top
Properties

| Name | Description
--- | --- | ---
| FormattingInfo | Gets or sets the formatting info for this converter
| Next | Get the next pattern converter in the chain
| Option | Gets or sets the option value for this converter
| Properties |

Top
Methods

| Name | Description
--- | --- | ---
| Convert | Evaluate this pattern converter and write the output to a writer.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| Format | Write the pattern converter to the writer with appropriate formatting
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| SetNext | Set the next pattern converter in the chains
| SpacePad | Fast space padding method.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)
| WriteDictionary(TextWriter, ILoggerRepository, IDictionary) | Write an dictionary to a TextWriter
| WriteDictionary(TextWriter, ILoggerRepository, IDictionaryEnumerator) | Write an dictionary to a TextWriter
| WriteObject | Write an object to a TextWriter

Top
Remarks

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

#### Reference

log4net.Util Namespace