Class LogEventManager
- Namespace
- Dynamicweb.Logging.LogEvents
- Assembly
- Dynamicweb.Core.dll
Log manger to ease of use regarding logging information to the eventviewer.
public class LogEventManager
- Inheritance
-
LogEventManager
- Inherited Members
Properties
Current
Gets the current instance of the LogEventManager
public static LogEventManager Current { get; }
Property Value
Methods
Log(string, LogLevel, string)
Logs informtion to eventview.
public LogEvent Log(string category, LogLevel level, string longDescription)
Parameters
categorystringThe current action performed by the program
levelLogLevelLevel of the logged event
longDescriptionstringDetails of the logged information
Returns
- LogEvent
logEvent
Log(string, string)
Logs informtion to eventview.
public LogEvent Log(string category, string shortDescription)
Parameters
categorystringThe current action performed by the program
shortDescriptionstringShort description of what is happening
Returns
- LogEvent
logEvent
Log(string, string, LogLevel, string)
Logs informtion to eventview.
public LogEvent Log(string category, string action, LogLevel level, string longDescription)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
levelLogLevelLevel of the logged event
longDescriptionstringDetails of the logged information
Returns
- LogEvent
logEvent
Log(string, string, string)
Logs informtion to eventview.
public LogEvent Log(string category, string action, string shortDescription)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
shortDescriptionstringShort description of what is happening
Returns
- LogEvent
logEvent
Log(string, string?, string?, LogLevel, string)
Logs informtion to eventview.
public LogEvent Log(string category, string? action, string? shortDescription, LogLevel level, string longDescription)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
shortDescriptionstringShort description of what is happening
levelLogLevelLevel of the logged event
longDescriptionstringDetails of the logged information
Returns
- LogEvent
logEvent
LogError(string, Exception)
Logs informtion to eventview.
public LogEvent LogError(string category, Exception ex)
Parameters
Returns
- LogEvent
logEvent
LogError(string, string?, Exception)
Logs informtion to eventview.
public LogEvent LogError(string category, string? action, Exception ex)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
exExceptionException to log
Returns
- LogEvent
logEvent
LogError(string, string?, string?, Exception)
Logs informtion to eventview.
public LogEvent LogError(string category, string? action, string? shortDescription, Exception ex)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
shortDescriptionstringShort description of what is happening
exExceptionException to log
Returns
- LogEvent
logEvent
LogErrors(string, string, string, List<string>, Exception)
Logs informtion to eventview.
public LogEvent LogErrors(string category, string action, string shortDescription, List<string> extraLogInfo, Exception ex)
Parameters
categorystringThe current action performed by the program
actionstringSubsection of a specific area of actions
shortDescriptionstringShort description of what is happening
extraLogInfoList<string>Extra information that should be logged to extended storage
exExceptionException to log
Returns
- LogEvent
logEvent