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
streamStreamThe stream to write log messages to.
minimalLogLevelLogLevelThe 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
filePathstringThe path to the Debwin log file.
minimalLogLevelLogLevelThe 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
hostNamestringThe host name of the UDP server.
portintThe port of the UDP server.
minimalLogLevelLogLevelThe minimal log level to write.
Methods
AddProvider(ILoggerProvider)
Adds an ILoggerProvider to the logging system.
public void AddProvider(ILoggerProvider provider)
Parameters
providerILoggerProviderThe ILoggerProvider.
CreateLogger(string)
Creates a new ILogger instance.
public ILogger CreateLogger(string categoryName)
Parameters
categoryNamestringThe category name for messages produced by the logger.
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()