package
Version:
v0.2.20
Opens a new window with list of versions in this module.
Published: Sep 8, 2026
License: MIT
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 logx 提供 slog 全局初始化(结构化日志,零第三方依赖)。
func Setup(level, format string)
Setup 初始化全局 slog 默认 logger。level: debug|info|warn|error;format: text|json。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.