Skip to content

9c6edfd9 4857 31e3 d418 3aa9e2e18a17

Axel Kesseler edited this page Mar 1, 2023 · 18 revisions

LogLevel Enumeration

This enumeration defines all currently supported logging levels.

Namespace: Plexdata.LogWriter.Definitions
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

public enum LogLevel

Members

 

Member name Value Description
Disabled 0 This logging level indicates that logging is disabled at all.
Trace 1 This is the lowest possible logging level and can be used for example to track a call of a method.
Debug 2 This logging level might be used for any debug purpose.
Verbose 3 The verbose logging level could be used for example to inform about the program version, start-up time or something similar.
Message 4 The message logging level could be used for example to track the current state of a program.
Warning 5 The warning logging level could be used to inform the outside world about possible problem that could cause a crash later on.
Error 6 The error logging level could be used to indicate for example problems with other components.
Fatal 7 The fatal logging level could be used to indicate for example real problems. Such problems may result in that a program cannot longer function as expected.
Critical 8 The critical logging level could be used to indicate for example a really bad program state. Such a critical program state may cause the program to give up and to terminate unexpectedly.
Disaster 9 The disaster logging level could be used to indicate for example a really dangerous program state. Such a disaster program state may cause the program to give up in an unwanted state and to terminate unexpectedly.
Default 4 The default logging level, which is set to Message. It is used for example as initial logging level.

Remarks

Generally spoken, a logging level represents the granularity of information that are put into a logging target. This in turn means, the higher the logging level the less are the messages written into the log. Right here applies, the logging level rises from Trace up to Disaster. And this means, if the logging level is for example set to Warning, every message with a log-level below Warning will be suppressed and every message with a log-level equal to or higher than Warning is written to logging target.

See Also

Reference

Plexdata.LogWriter.Definitions Namespace

Clone this wiki locally