Table of Contents

Class DebwinLoggerProvider

Namespace
combit.Logging
Assembly
combit.ListLabel31.CrossPlatform.dll

Provides a logger implementation that writes log messages to a Debwin log file.

public sealed class DebwinLoggerProvider : ILoggerProvider, IDisposable
Inheritance
DebwinLoggerProvider
Implements
Inherited Members

Constructors

DebwinLoggerProvider(Stream, LogLevel)

Initializes a new instance of the DebwinLoggerProvider class with the specified minimal log level and stream.

public DebwinLoggerProvider(Stream stream, LogLevel minimalLogLevel = LogLevel.Debug)

Parameters

stream Stream

The stream to write log messages to.

minimalLogLevel LogLevel

The minimal log level for the logger.

DebwinLoggerProvider(string, LogLevel)

Initializes a new instance of the DebwinLoggerProvider class with the specified minimal log level and file path.

public DebwinLoggerProvider(string filePath, LogLevel minimalLogLevel = LogLevel.Debug)

Parameters

filePath string

The path to the Debwin log file.

minimalLogLevel LogLevel

The minimal log level for the logger.

DebwinLoggerProvider(string, int, LogLevel)

Initializes a new instance of the DebwinLoggerProvider class with the specified host name, port, and minimal log level.

public DebwinLoggerProvider(string hostName, int port, LogLevel minimalLogLevel = LogLevel.Debug)

Parameters

hostName string

The host name for the logger.

port int

The port for the logger.

minimalLogLevel LogLevel

The minimal log level for the logger.

Methods

CreateLogger(string)

Creates a new instance of the DebwinLogger class with the specified category name.

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

The name of the logger category.

Returns

ILogger

A new instance of the DebwinLogger class.

Dispose()

Disposes the underlying file stream.

public void Dispose()