logo
0
0
Login

/Release/v1.2.0

v1.2.0
latest
OverviewDeployMetadata

支持新的日志等级 FATAL

该版本新增了一个日志等级 FATAL 和其对应的打印函数 Fatal,签名如下:

func Fatal(message string, args ...any)

FATAL 记录致命信息,代表目前最高等级的日志(大于先前版本的 ERROR),默认情况下,输出到标准错误。在加入 FATAL 之后,日志等级排序如下(从低到高):

  1. VERBOSE
  2. DEBUG
  3. INFO
  4. WARN
  5. ERROR
  6. FATAL

New Log Level ---- FATAL

This version has added a new log level VERBOSE and its corresponding print function Verbose, with the following signature:

func Fatal(message string, args ...any)

FATAL is used to record fatal messages, representing the highest-level log currently (with a priority higher than the ERROR level in previous versions). By default, it is output to standard error. After the introduction of the FATAL level, the hierarchy of log levels (from lowest to highest) is as follows:

  1. VERBOSE
  2. DEBUG
  3. INFO
  4. WARN
  5. ERROR
  6. FATAL
Attachment
2025-06-29 20:54:40
2025-06-29 20:54:40