C# Class AWSAppender.Core.PatternConverter.NamedPatternConverter

Inheritance: log4net.Layout.Pattern.PatternLayoutConverter, IOptionHandler
Show file Open project: camitz/CloudWatchAppender

Protected Properties

Property Type Description
m_precision int

Public Methods

Method Description
ActivateOptions ( ) : void

Initialize the converter

This is part of the T:log4net.Core.IOptionHandler delayed object activation scheme. The M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions method must be called on this object after the configuration properties have been set. Until M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions is called this object is in an undefined state and must not be used.

If any of the configuration properties are modified then M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions must be called again.

Protected Methods

Method Description
Convert ( TextWriter writer, log4net.Core.LoggingEvent loggingEvent ) : void

Convert the pattern to the rendered message

Render the M:log4net.Layout.Pattern.NamedPatternConverter.GetFullyQualifiedName(log4net.Core.LoggingEvent) to the precision specified by the P:log4net.Util.PatternConverter.Option property.

GetFullyQualifiedName ( log4net.Core.LoggingEvent loggingEvent ) : string

Get the fully qualified string data

Overridden by subclasses to get the fully qualified name before the precision is applied to it.

Return the fully qualified '.' (dot/period) separated string.

Method Details

ActivateOptions() public method

Initialize the converter

This is part of the T:log4net.Core.IOptionHandler delayed object activation scheme. The M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions method must be called on this object after the configuration properties have been set. Until M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions is called this object is in an undefined state and must not be used.

If any of the configuration properties are modified then M:log4net.Layout.Pattern.NamedPatternConverter.ActivateOptions must be called again.

public ActivateOptions ( ) : void
return void

Convert() protected method

Convert the pattern to the rendered message
Render the M:log4net.Layout.Pattern.NamedPatternConverter.GetFullyQualifiedName(log4net.Core.LoggingEvent) to the precision specified by the P:log4net.Util.PatternConverter.Option property.
protected Convert ( TextWriter writer, log4net.Core.LoggingEvent loggingEvent ) : void
writer System.IO.TextWriter that will receive the formatted result.
loggingEvent log4net.Core.LoggingEvent the event being logged
return void

GetFullyQualifiedName() protected abstract method

Get the fully qualified string data

Overridden by subclasses to get the fully qualified name before the precision is applied to it.

Return the fully qualified '.' (dot/period) separated string.

protected abstract GetFullyQualifiedName ( log4net.Core.LoggingEvent loggingEvent ) : string
loggingEvent log4net.Core.LoggingEvent the event being logged
return string

Property Details

m_precision protected property

protected int m_precision
return int