LogEvent Class |
[This is preliminary documentation and is subject to change.]
Namespace: CSInfrastructure.Events
public sealed class LogEvent : BaseEvent
The LogEvent type exposes the following members.
| Name | Description | |
|---|---|---|
| LogEvent(Level, String) |
Creates a log event with given severity and message
| |
| LogEvent(Level, String, String) |
Creates a log event with given severity, message and the source from where the event originated
| |
| LogEvent(Level, String, String, String) |
Creates a log even with given severity, message, source and file from where the event originated
| |
| LogEvent(Level, String, String, String, Int32) |
Creates a log even with given severity, message, source, file and line number from where the event originated
|
| Name | Description | |
|---|---|---|
| Message |
The log message
| |
| Severity |
The severity of the logging event
| |
| Source |
Determines the source of the logging event. Unknown if no SourceFile is provided
| |
| SourceFile |
The source file from where the logging event originated
| |
| SourceLineNumber |
The line number of the source file on which the logging event originated
| |
| SourceMethod |
The source method from where the logging event originated
|
| Name | Description | |
|---|---|---|
| Debug |
Factory method that creates a logging event with Debug and a given message.
It will automatically try to determine the source method, source file and line number
| |
| Error |
Factory method that creates a logging event with Error and a given message.
It will automatically try to determine the source method, source file and line number
| |
| Info |
Factory method that creates a logging event with Info and a given message.
It will automatically try to determine the source method, source file and line number
| |
| Trace |
Factory method that creates a logging event with Trace and a given message.
It will automatically try to determine the source method, source file and line number
| |
| Warn |
Factory method that creates a logging event with Warn and a given message.
It will automatically try to determine the source method, source file and line number
|