1 Star 1 Fork 1

menuiis/logx

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
main.go 427 Bytes
Copy Edit Raw Blame History
menuis authored 2 years ago . 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

Search