LogLevel 枚举


定义日志记录严重性级别。Defines logging severity levels.

public enum class LogLevel
public enum LogLevel
type LogLevel = 
Public Enum LogLevel


Critical 5

描述不可恢复的应用程序/系统崩溃或需要立即引起注意的灾难性故障的日志。Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires immediate attention.

Debug 1

在开发过程中用于交互式调查的日志。Logs that are used for interactive investigation during development. 这些日志应主要包含对调试有用的信息,并且没有长期价值。These logs should primarily contain information useful for debugging and have no long-term value.

Error 4

当前执行流因故障而停止时突出显示的日志。Logs that highlight 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.

Information 2

跟踪应用程序的常规流的日志。Logs that track the general flow of the application. 这些日志应具有长期价值。These logs should have long-term value.

None 6

不用于写入日志消息。Not used for writing log messages. 指定日志记录类别不应写入任何消息。Specifies that a logging category should not write any messages.

Trace 0

包含最详细消息的日志。Logs that contain the most detailed messages. 这些消息可能包含敏感应用程序数据。These messages may contain sensitive application data. 这些消息默认情况下处于禁用状态,并且绝不应在生产环境中启用。These messages are disabled by default and should never be enabled in a production environment.

Warning 3

突出显示应用程序流中的异常或意外事件(不会导致应用程序执行停止)的日志。Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the application execution to stop.