PatternLayoutConverter 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
log4net.Layout.Pattern
NamedPatternConverter

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

C#
VB
C++
F#
Copy

    public abstract class PatternLayoutConverter : PatternConverter

    Public MustInherit Class PatternLayoutConverter
    	Inherits PatternConverter

    public ref class PatternLayoutConverter abstract : public PatternConverter

    [<AbstractClassAttribute>]
    type PatternLayoutConverter =
        class
            inherit PatternConverter
        end

The PatternLayoutConverter type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| PatternLayoutConverter | Initializes a new instance of the PatternLayoutConverter class.

Top
Properties

| Name | Description
--- | --- | ---
| FormattingInfo | Gets or sets the formatting info for this converter (Inherited from PatternConverter.)
| IgnoresException | Flag indicating if this converter handles the logging event exception
| Next | Get the next pattern converter in the chain (Inherited from PatternConverter.)
| Option | Gets or sets the option value for this converter (Inherited from PatternConverter.)
| Properties | (Inherited from PatternConverter.)

Top
Methods

| Name | Description
--- | --- | ---
| Convert(TextWriter, LoggingEvent) | Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
| Convert(TextWriter, Object) | Derived pattern converters must override this method in order to convert conversion specifiers in the correct way. (Overrides PatternConverter Convert(TextWriter, Object).)
| 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 (Inherited from PatternConverter.)
| 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 (Inherited from PatternConverter.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

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.Layout.Pattern Namespace