C# Class SampleLayoutsApp.Layout.ForwardingLayout

The ForwardingLayout forwards to a nested ILayout
The ForwardingLayout base class is used by layouts that want to decorate other ILayout objects.
Inheritance: ILayout, IOptionHandler
Exibir arquivo Open project: aurora-sim/Aurora-Libs

Public Methods

Method Description
ActivateOptions ( ) : void

Activate component options

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

If any of the configuration properties are modified then ActivateOptions must be called again.

This method must be implemented by the subclass.

Format ( TextWriter writer, log4net.Core.LoggingEvent loggingEvent ) : void

Implement this method to create your own layout format.

This method is called by an appender to format the loggingEvent as text.

Protected Methods

Method Description
ForwardingLayout ( ) : System

Method Details

ActivateOptions() public method

Activate component options

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

If any of the configuration properties are modified then ActivateOptions must be called again.

This method must be implemented by the subclass.

public ActivateOptions ( ) : void
return void

Format() public method

Implement this method to create your own layout format.

This method is called by an appender to format the loggingEvent as text.

public Format ( TextWriter writer, log4net.Core.LoggingEvent loggingEvent ) : void
writer System.IO.TextWriter The TextWriter to write the formatted event to
loggingEvent log4net.Core.LoggingEvent The event to format
return void

ForwardingLayout() protected method

protected ForwardingLayout ( ) : System
return System