ITraceLogger Interface

Trace logger interface definition

Definition

Namespace: ASCOM.Common.Interfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public interface ITraceLogger : ILogger
Implements
ILogger

Remarks

Inherits the ILogger interface and exposed the

Properties

Enabled Enable or disable the logger
IdentifierWidth Set the width in characters of the identifier / method name column in the log file
LoggingLevel Get the current logging level. The log should write out at this level and higher
(Inherited from ILogger)
RespectCrLf True to honour CrLf sequences (a log message could occupy one or more lines in the log), False to print CrLf as [Cr]{Lf} ensuring that each message only occupies one line in the log.
UseUtcTime False to log local times, true to log UTC times,

Methods

BlankLine Create a blank line in the log
Log Log out a message at a given logging level. Only active levels should be added to the log. This method should never throw.
(Inherited from ILogger)
LogMessage Log a message to the logger device
SetMinimumLoggingLevel Set the current minimum logging level. The logger should write out at this level and higher and not write out lower level events. This method should never throw.
(Inherited from ILogger)

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