Share via


Logger Class

Definition

Defines an event log file structure to which programs can write informational or programmatic warning or error events.

public sealed class Logger
type Logger = class
Public NotInheritable Class Logger
Inheritance
Logger

Properties

Enabled

Indicates whether logging is enabled.

RegistryPath

Holds the registry path to the log file.

Methods

Close()

Closes the log stream.

Error(String, String, Exception)

Logs an error event with the specified parameters.

Error(String, String)

Logs an error event with the specified parameters.

Info(String, String, Boolean)

Logs an informational event with the specified parameters.

Info(String, String)

Logs an informational event with the specified parameters.

Warn(String, String, Boolean)

Logs a warning event with the specified parameters.

Warn(String, String)

Logs a warning event with the specified parameters.

Applies to