Show / Hide Table of Contents

Enum LoggingLevel

Following the guidelines from https://github.com/aspnet/Logging/wiki/Guidelines.

Namespace: NModbus
Assembly: NModbus.dll
Syntax
public enum LoggingLevel

Fields

Name Description
Critical

A critical log should describe an unrecoverable application or system crash, or a catastrophic failure that requires immediate attention.

Debug

Logs that are used for interactive investigation during development should use the Debug level. These logs should primarily contain information useful for debugging and have no long-term value. This is the default most verbose level of logging.

Error

An error should be logged when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure. These will mainly be unhandled exceptions and recoverable failures.

Information

Track the general flow of the application using logs at the Information level. These logs should have value in the long term.

Trace

The most detailed log messages, may contain sensitive application data. These messages should be disabled by default and should never be enabled in a production environment.

Warning

Warnings should highlight an abnormal or unexpected event in the application flow. This event does not cause the application execution to stop, but can signify sub-optimal performance or a potential problem for the future. A common place to log a warning is from handled exceptions.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX