Class LogEventManager
- Namespace
- Dynamicweb.Logging.LogEvents
- Assembly
- Dynamicweb.Logging.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
string- The current action performed by the program
level
LogLevel- Level of the logged event
longDescription
string- Details of the logged information
Returns
- LogEvent
- logEvent
Log(string, string)
Logs informtion to eventview.
public LogEvent Log(string category, string shortDescription)
Parameters
category
string- The current action performed by the program
shortDescription
string- Short 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
level
LogLevel- Level of the logged event
longDescription
string- Details 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
shortDescription
string- Short 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
shortDescription
string- Short description of what is happening
level
LogLevel- Level of the logged event
longDescription
string- Details 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
ex
Exception- Exception 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
shortDescription
string- Short description of what is happening
ex
Exception- Exception 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
string- The current action performed by the program
action
string- Subsection of a specific area of actions
shortDescription
string- Short description of what is happening
extraLogInfo
List<string>- Extra information that should be logged to extended storage
ex
Exception- Exception to log
Returns
- LogEvent
- logEvent