C# Class NLog.Config.InstallationContext

Provides context for install/uninstall operations.
Inheritance: IDisposable
Datei anzeigen Open project: shiftkey/winrt-backport-hilarity Class Usage Examples

Public Methods

Method Description
CreateLogEvent ( ) : LogEventInfo

Creates the log event which can be used to render layouts during installation/uninstallations.

Debug ( [ message ) : void

Logs the specified debug message.

Dispose ( ) : void

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

Error ( [ message ) : void

Logs the specified error message.

Info ( [ message ) : void

Logs the specified informational message.

InstallationContext ( ) : Windows.Adapters

Initializes a new instance of the InstallationContext class.

InstallationContext ( TextWriter logOutput ) : Windows.Adapters

Initializes a new instance of the InstallationContext class.

Trace ( [ message ) : void

Logs the specified trace message.

Warning ( [ message ) : void

Logs the specified warning message.

Private Methods

Method Description
Log ( LogLevel logLevel, [ message, object arguments ) : void

Method Details

CreateLogEvent() public method

Creates the log event which can be used to render layouts during installation/uninstallations.
public CreateLogEvent ( ) : LogEventInfo
return LogEventInfo

Debug() public method

Logs the specified debug message.
public Debug ( [ message ) : void
message [ The message.
return void

Dispose() public method

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

Error() public method

Logs the specified error message.
public Error ( [ message ) : void
message [ The message.
return void

Info() public method

Logs the specified informational message.
public Info ( [ message ) : void
message [ The message.
return void

InstallationContext() public method

Initializes a new instance of the InstallationContext class.
public InstallationContext ( ) : Windows.Adapters
return Windows.Adapters

InstallationContext() public method

Initializes a new instance of the InstallationContext class.
public InstallationContext ( TextWriter logOutput ) : Windows.Adapters
logOutput System.IO.TextWriter The log output.
return Windows.Adapters

Trace() public method

Logs the specified trace message.
public Trace ( [ message ) : void
message [ The message.
return void

Warning() public method

Logs the specified warning message.
public Warning ( [ message ) : void
message [ The message.
return void