Class LogEventProvider
- Namespace
- Dynamicweb.Logging.LogEvents
- Assembly
- Dynamicweb.Core.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
stringName 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
LogLevelLevel of threshold