LoggerExtensions Class

This is a standard set of extensions that add functionality to an ILogger. Because these can be implemented in a standard way they are not part of the interface

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static class LoggerExtensions
Inheritance
Object    LoggerExtensions

Methods

BlankLine Create a blank line in a log
IsLevelActive Determine whether the supplied ILogger instance is set at the specified log level or at a more verbose level
LogDebug Log a message at debug level
LogError Log a message at error level
LogFatal Log a message at fatal level
LogInformation Log a message at information level
LogMessage Log a message in TraceLogger format if the logging device is a TraceLogger, otherwise use the ILogger.Log format
LogVerbose Log a message at verbose level
LogWarning Log a message at warning level

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also