Interface ILoggerProvider
- Namespace
- Dynamicweb.Logging
- Assembly
- Dynamicweb.Logging.dll
Defines operations for logger providers and implemented by the LogManager.
public interface ILoggerProvider
Methods
DisableTracing()
Turns off system-wide tracing.
This is useful once debugging is finished.
void DisableTracing()
EnableTracing()
Turns on system-wide tracing. When tracing is enabled, all LogLevels are logged.
This is useful when debugging an issue.
void EnableTracing()
GetLogger(string)
Gets an ILogger instance ready to use.
ILogger GetLogger(string name)
Parameters
Returns
GetLogger(string, string)
Gets an ILogger instance ready to use.
ILogger GetLogger(string name, string identifier)
Parameters
name
string- The name of the ILogger to get.
identifier
string- An identifier that is added to the log. Can be used to show association, i.e. Order ID.
Returns
ResetGlobalLogThreshold()
Resets the global logging threshold to the default LogLevel.
void ResetGlobalLogThreshold()
SetGlobalLogThreshold(LogLevel)
Sets the global logging threshold. Any LogLevels lower than this value are ignored.
Default is Information.
void SetGlobalLogThreshold(LogLevel level)