C# Class Hawkeye.Logging.log4net.LogServiceAppender

Inheritance: log4net.Appender.AppenderSkeleton, ILogLevelThresholdSelector
Afficher le fichier Open project: odalet/Hawkeye2 Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

LogServiceAppender ( ILogService logServiceToAppend ) : System

Méthodes protégées

Méthode Description
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Subclasses of T:log4net.Appender.AppenderSkeleton should implement this method to perform actual logging.

A subclass must implement this method to perform logging of the loggingEvent.

This method will be called by M:log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent) if all the conditions listed for that method are met.

To restrict the logging of events in the appender override the M:log4net.Appender.AppenderSkeleton.PreAppendCheck method.

OnClose ( ) : void

Is called when the appender is closed. Derived classes should override this method if resources need to be released.

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

Method Details

Append() protected méthode

Subclasses of T:log4net.Appender.AppenderSkeleton should implement this method to perform actual logging.

A subclass must implement this method to perform logging of the loggingEvent.

This method will be called by M:log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent) if all the conditions listed for that method are met.

To restrict the logging of events in the appender override the M:log4net.Appender.AppenderSkeleton.PreAppendCheck method.

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent The event to append.
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

LogServiceAppender() public méthode

public LogServiceAppender ( ILogService logServiceToAppend ) : System
logServiceToAppend ILogService
Résultat System

OnClose() protected méthode

Is called when the appender is closed. Derived classes should override this method if resources need to be released.

Releases any resources allocated within the appender such as file handles, network connections, etc.

It is a programming error to append to a closed appender.

protected OnClose ( ) : void
Résultat void