C# Class NLog.Extensions.Logging.NLogLoggerProvider

Provider logger for NLog.
Inheritance: Microsoft.Extensions.Logging.ILoggerProvider
显示文件 Open project: NLog/NLog.Extensions.Logging Class Usage Examples

Public Methods

Method Description
CreateLogger ( string name ) : Microsoft.Extensions.Logging.ILogger

Create a logger with the name name.

Dispose ( ) : void

Cleanup

NLogLoggerProvider ( )

NLogLoggerProvider with default options.

Method Details

CreateLogger() public method

Create a logger with the name name.
public CreateLogger ( string name ) : Microsoft.Extensions.Logging.ILogger
name string Name of the logger to be created.
return Microsoft.Extensions.Logging.ILogger

Dispose() public method

Cleanup
public Dispose ( ) : void
return void

NLogLoggerProvider() public method

NLogLoggerProvider with default options.
public NLogLoggerProvider ( )