Logger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |