1 Star 1 Fork 1

menuiis/logx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 427 Bytes
一键复制 编辑 原始数据 按行查看 历史
menuis 提交于 2年前 . init
package main
import (
"log"
"os"
"gitee.com/menciis/logx"
)
// simulate a log.Logger preparation:
var myLogger = log.New(os.Stdout, "", 0)
func main() {
logx.SetLevel("error")
logx.InstallStd(myLogger)
logx.Debug(`this debug message will not be shown,
because the golog level is ErrorLevel`)
logx.Error("this error message will be visible the only visible")
logx.Warn("this info message will not be visible")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/menciis/logx.git
git@gitee.com:menciis/logx.git
menciis
logx
logx
master

搜索帮助