C# Класс AWSAppender.Core.PatternConverter.NamedPatternConverter

Наследование: log4net.Layout.Pattern.PatternLayoutConverter, IOptionHandler
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_precision int

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

ActivateOptions() публичный Метод

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
Результат void

Convert() защищенный Метод

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
Результат void

GetFullyQualifiedName() защищенный абстрактный Метод

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
Результат string

Описание свойств

m_precision защищенное свойство

protected int m_precision
Результат int