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
streamStreamThe stream to write log messages to.
minimalLogLevelLogLevelThe 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
filePathstringThe path to the Debwin log file.
minimalLogLevelLogLevelThe 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
hostNamestringThe host name for the logger.
portintThe port for the logger.
minimalLogLevelLogLevelThe 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
categoryNamestringThe name of the logger category.
Returns
- ILogger
A new instance of the DebwinLogger class.
Dispose()
Disposes the underlying file stream.
public void Dispose()