C# 클래스 NLog.Config.LoggingConfiguration

Keeps logging configuration and provides simple API to modify it.
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

공개 메소드들

메소드 설명
AddTarget ( string name, Target target ) : void

Registers the specified target object under a given name.

FindTargetByName ( string name ) : Target

Finds the target with the specified name.

Install ( InstallationContext installationContext ) : void

Installs target-specific objects on current system.

Installation typically runs with administrative permissions.

LoggingConfiguration ( ) : System

Initializes a new instance of the LoggingConfiguration class.

Reload ( ) : LoggingConfiguration

Called by LogManager when one of the log configuration files changes.

RemoveTarget ( string name ) : void

Removes the specified named target.

Uninstall ( InstallationContext installationContext ) : void

Uninstalls target-specific objects from current system.

Uninstallation typically runs with administrative permissions.

비공개 메소드들

메소드 설명
Close ( ) : void

Closes all targets and releases any unmanaged resources.

Dump ( ) : void
EnsureInitialized ( ) : void
FlushAllTargets ( AsyncContinuation asyncContinuation ) : void

Flushes any pending log messages on all appenders.

InitializeAll ( ) : void
ValidateConfig ( ) : void

Validates the configuration.

메소드 상세

AddTarget() 공개 메소드

Registers the specified target object under a given name.
public AddTarget ( string name, Target target ) : void
name string /// Name of the target. ///
target NLog.Targets.Target /// The target object. ///
리턴 void

FindTargetByName() 공개 메소드

Finds the target with the specified name.
public FindTargetByName ( string name ) : Target
name string /// The name of the target to be found. ///
리턴 NLog.Targets.Target

Install() 공개 메소드

Installs target-specific objects on current system.
Installation typically runs with administrative permissions.
public Install ( InstallationContext installationContext ) : void
installationContext InstallationContext The installation context.
리턴 void

LoggingConfiguration() 공개 메소드

Initializes a new instance of the LoggingConfiguration class.
public LoggingConfiguration ( ) : System
리턴 System

Reload() 공개 메소드

Called by LogManager when one of the log configuration files changes.
public Reload ( ) : LoggingConfiguration
리턴 LoggingConfiguration

RemoveTarget() 공개 메소드

Removes the specified named target.
public RemoveTarget ( string name ) : void
name string /// Name of the target. ///
리턴 void

Uninstall() 공개 메소드

Uninstalls target-specific objects from current system.
Uninstallation typically runs with administrative permissions.
public Uninstall ( InstallationContext installationContext ) : void
installationContext InstallationContext The installation context.
리턴 void