package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Sep 21, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package logging 统一构造 slog 日志器。
New 按 opts 构造日志器,写入 w。
无法识别的取值回退到 info / text,而不是报错——日志本身不该成为启动失败的原因。
ParseLevel 把级别字符串转成 slog.Level,无法识别时回退 info。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.