NamedPatternConverter ClassApache log4net™ SDK Documentation
Converter to output and truncate '.' separated strings
Inheritance Hierarchy

SystemObject
  log4net.UtilPatternConverter
    log4net.Layout.PatternPatternLayoutConverter
      log4net.Layout.PatternNamedPatternConverter

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

public abstract class NamedPatternConverter : PatternLayoutConverter, 
	IOptionHandler

The NamedPatternConverter type exposes the following members.

Constructors

  NameDescription
Protected methodNamedPatternConverter
Initializes a new instance of the NamedPatternConverter class
Top
Properties

  NameDescription
Public propertyFormattingInfo
Gets or sets the formatting info for this converter
(Inherited from PatternConverter.)
Public propertyIgnoresException
Flag indicating if this converter handles the logging event exception
(Inherited from PatternLayoutConverter.)
Public propertyNext
Get the next pattern converter in the chain
(Inherited from PatternConverter.)
Public propertyOption
Gets or sets the option value for this converter
(Inherited from PatternConverter.)
Public propertyProperties
(Inherited from PatternConverter.)
Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the converter
Protected methodConvert(TextWriter, LoggingEvent)
Convert the pattern to the rendered message
(Overrides PatternLayoutConverterConvert(TextWriter, LoggingEvent).)
Protected methodConvert(TextWriter, Object)
Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
(Inherited from PatternLayoutConverter.)
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
(Inherited from PatternConverter.)
Protected methodGetFullyQualifiedName
Get the fully qualified string data
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
(Inherited from PatternConverter.)
Public methodToString
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