Table of Contents

Class DebwinLoggerFactory

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

Provides an ILoggerFactory implementation that creates Debwin loggers.

public sealed class DebwinLoggerFactory : ILoggerFactory, IDisposable
Inheritance
DebwinLoggerFactory
Implements
Inherited Members

Constructors

DebwinLoggerFactory(Stream, LogLevel)

Initializes a new instance of the DebwinLoggerFactory class for stream output.

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

Parameters

stream Stream

The stream to write log messages to.

minimalLogLevel LogLevel

The minimal log level to write.

DebwinLoggerFactory(string, LogLevel)

Initializes a new instance of the DebwinLoggerFactory class for file output.

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

Parameters

filePath string

The path to the Debwin log file.

minimalLogLevel LogLevel

The minimal log level to write.

DebwinLoggerFactory(string, int, LogLevel)

Initializes a new instance of the DebwinLoggerFactory class for UDP output.

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

Parameters

hostName string

The host name of the UDP server.

port int

The port of the UDP server.

minimalLogLevel LogLevel

The minimal log level to write.

Methods

AddProvider(ILoggerProvider)

Adds an ILoggerProvider to the logging system.

public void AddProvider(ILoggerProvider provider)

Parameters

provider ILoggerProvider

The ILoggerProvider.

CreateLogger(string)

Creates a new ILogger instance.

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

The category name for messages produced by the logger.

Returns

ILogger

The ILogger.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()