定义日志级别枚举,用于控制日志的输出级别。
详细日志级别,用于输出最详细的日志信息,通常用于调试。
调试日志级别,用于输出调试信息,帮助开发人员定位问题。
信息日志级别,用于输出一般的信息,如程序的启动、停止等。
警告日志级别,用于输出可能会导致问题的信息,但不影响程序的正常运行。
错误日志级别,用于输出程序运行过程中出现的错误信息。
断言日志级别,用于输出断言失败的信息,通常用于开发和测试阶段。
无日志级别,用于关闭所有日志输出。
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.