ConsoleLogger Class

Simple logger to write to the console

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public class ConsoleLogger : ILogger
Inheritance
Object    ConsoleLogger
Implements
ILogger

Constructors

ConsoleLoggerInitializes a new instance of the ConsoleLogger class

Properties

LoggingLevel Return the current logging level

Methods

Log Write a message to the console
SetMinimumLoggingLevel Minimum logging level to display.

Extension Methods

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

Version Information

.NET Standard

Supported in: 2.0

See Also