Table of Contents

Class NLogProvider

Namespace
Dynamicweb.Logging.NLog
Assembly
Dynamicweb.Logging.dll
Represents NLogProvider for manipulation with loggers
public class NLogProvider : ILoggerProvider
Inheritance
NLogProvider
Implements
Inherited Members

Constructors

NLogProvider()

Default constructor
public NLogProvider()

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
NLogLogger object instance

GetLogger(string, string)

Gets specific logger instance using its name and identifier
public ILogger GetLogger(string name, string identifier)

Parameters

name string
Name as string value
identifier string
Identifier as string value

Returns

ILogger
NLogLogger 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
To top