1 Star 1 Fork 1

menuiis/logx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
menuis 提交于 2年前 . init
package main
import (
"gitee.com/menciis/logx"
)
func main() {
log := logx.New()
// Default Output is `os.Stderr`,
// but you can change it:
// log.SetOutput(os.Stdout)
// Level defaults to "info",
// but you can change it:
log.SetLevel("debug")
log.Println("This is a raw message, no levels, no colors.")
log.Info("This is an info message, with colors (if the output is terminal)")
log.Warn("This is a warning message")
log.Error("This is an error message")
log.Debug("This is a debug message")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/menciis/logx.git
git@gitee.com:menciis/logx.git
menciis
logx
logx
master

搜索帮助