代码拉取完成,页面将自动刷新
package main
import (
"gitee.com/menciis/logx"
)
func main() {
// Default Output is `os.Stdout`,
// but you can change it:
// golog.SetOutput(os.Stderr)
// Time Format defaults to: "2006/01/02 15:04"
// you can change it to something else or disable it with:
log := logx.New()
log.MessageColor = true
log.TimeColor = true
logx.SetTimeFormat("")
// Level defaults to "info",
// but you can change it:
//logx.SetLevel("debug")
log.Println("This is a raw message, no levels, no colors.")
logx.Verbose("This is a verbose message, it will be printed if logger's Level is <= VerboseLevel")
logx.Debug("This is a debug message")
log.Info("This is an info message, with colors (if the output is terminal)")
log.Warn("This is a warning message")
logx.Error("This is an error message")
logx.Silentf("This is a silent message, it will not be printed")
logx.Fatal("Fatal will exit no matter what, but it will also print the log message if logger's Level is >= FatalLevel")
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。