Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New()
Default 默认控制台
Functions ¶
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console 控制台打印器。
console 包定位:开发期彩色 stdout 工具,跟 fmt.Println 同级。 不写文件、不感知运行环境、不做任何隐式 level 切换—— 所有 level 行为都由调用方显式控制(SetLevel / WithLevel)。
业务可观测信息(用户登录、订单状态变更等"上线后必须保留的事件") 请使用 logger 包;console 仅用于开发期肉眼调试。
type Level ¶
type Level int32
Level 日志级别
Click to show internal directories.
Click to hide internal directories.