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: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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

.NET Standard

Supported in: 2.0

See Also