NamedPatternConverter Class | Apache log4net™ SDK Documentation

Converter to output and truncate '.' separated strings
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 NamedPatternConverter : PatternLayoutConverter,
    	IOptionHandler

    Public MustInherit Class NamedPatternConverter
    	Inherits PatternLayoutConverter
    	Implements IOptionHandler

    public ref class NamedPatternConverter abstract : public PatternLayoutConverter,
    	IOptionHandler

    [<AbstractClassAttribute>]
    type NamedPatternConverter =
        class
            inherit PatternLayoutConverter
            interface IOptionHandler
        end

The NamedPatternConverter type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| NamedPatternConverter | Initializes a new instance of the NamedPatternConverter 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 (Inherited from PatternLayoutConverter.)
| 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
--- | --- | ---
| ActivateOptions | Initialize the converter
| Convert(TextWriter, LoggingEvent) | Convert the pattern to the rendered message (Overrides PatternLayoutConverter Convert(TextWriter, LoggingEvent).)
| Convert(TextWriter, Object) | Derived pattern converters must override this method in order to convert conversion specifiers in the correct way. (Inherited from PatternLayoutConverter.)
| 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.)
| GetFullyQualifiedName | Get the fully qualified string data
| 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

This abstract class supports truncating a '.' separated string to show a specified number of elements from the right hand side. This is used to truncate class names that are fully qualified.

Subclasses should override the GetFullyQualifiedName(LoggingEvent) method to return the fully qualified string.

See Also

#### Reference

log4net.Layout.Pattern Namespace