C# Class AWSAppender.Core.PatternConverter.NamedPatternConverter

Inheritance: log4net.Layout.Pattern.PatternLayoutConverter, IOptionHandler
Afficher le fichier Open project: camitz/CloudWatchAppender

Protected Properties

Свойство Type Description
m_precision int

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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
Résultat void

Convert() protected méthode

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
Résultat void

GetFullyQualifiedName() protected abstract méthode

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
Résultat string

Property Details

m_precision protected_oe property

protected int m_precision
Résultat int