Converter to output and truncate '.' separated strings
Inheritance Hierarchy
log4net.UtilPatternConverter
log4net.Layout.PatternPatternLayoutConverter
log4net.Layout.PatternNamedPatternConverter
Namespace: log4net.Layout.Pattern
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The NamedPatternConverter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NamedPatternConverter | Initializes a new instance of the NamedPatternConverter class |
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.) |
Methods
Name | Description | |
---|---|---|
ActivateOptions |
Initialize the converter
| |
Convert(TextWriter, LoggingEvent) |
Convert the pattern to the rendered message
(Overrides PatternLayoutConverterConvert(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 | (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 | (Inherited from Object.) |
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