LogLevel

定义日志级别枚举,用于控制日志的输出级别。

Entries

Link copied to clipboard

详细日志级别,用于输出最详细的日志信息,通常用于调试。

Link copied to clipboard

调试日志级别,用于输出调试信息,帮助开发人员定位问题。

Link copied to clipboard

信息日志级别,用于输出一般的信息,如程序的启动、停止等。

Link copied to clipboard

警告日志级别,用于输出可能会导致问题的信息,但不影响程序的正常运行。

Link copied to clipboard

错误日志级别,用于输出程序运行过程中出现的错误信息。

Link copied to clipboard

断言日志级别,用于输出断言失败的信息,通常用于开发和测试阶段。

Link copied to clipboard

无日志级别,用于关闭所有日志输出。

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun valueOf(value: String): LogLevel

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.