Class LogEventProvider
- Namespace
- Dynamicweb.Logging.LogEvents
- Assembly
- Dynamicweb.Logging.dll
Represents LogEventProvider for manipulation with loggers
public class LogEventProvider : ILoggerProvider
- Inheritance
-
LogEventProvider
- Implements
- Inherited Members
Constructors
LogEventProvider()
Default constructor
public LogEventProvider()
Methods
DisableTracing()
Disables tracing
public void DisableTracing()
EnableTracing()
Enables tracing
public void EnableTracing()
GetLogger(string)
Gets specific logger instance using its name
public ILogger GetLogger(string name)
Parameters
name
string- Name as string value
Returns
- ILogger
- LogEventLogger object instance
GetLogger(string, string)
Gets specific logger instance using its name and identifier
public ILogger GetLogger(string name, string identifier)
Parameters
Returns
- ILogger
- LogEventLogger object instance
ResetGlobalLogThreshold()
Resets global log threshold
public void ResetGlobalLogThreshold()
SetGlobalLogThreshold(LogLevel)
Sets the global log threshold. Log events below this threshold are not logged.
public void SetGlobalLogThreshold(LogLevel level)
Parameters
level
LogLevel- Level of threshold