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
category
stringThe current action performed by the program
level
LogLevelLevel of the logged event
longDescription
stringDetails of the logged information
Returns
- LogEvent
logEvent
Log(string, string)
Logs informtion to eventview.
public LogEvent Log(string category, string shortDescription)
Parameters
category
stringThe current action performed by the program
shortDescription
stringShort 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
level
LogLevelLevel of the logged event
longDescription
stringDetails 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
shortDescription
stringShort 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
shortDescription
stringShort description of what is happening
level
LogLevelLevel of the logged event
longDescription
stringDetails 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
ex
ExceptionException 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
shortDescription
stringShort description of what is happening
ex
ExceptionException 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
category
stringThe current action performed by the program
action
stringSubsection of a specific area of actions
shortDescription
stringShort description of what is happening
extraLogInfo
List<string>Extra information that should be logged to extended storage
ex
ExceptionException to log
Returns
- LogEvent
logEvent