/log

Primary LanguageGo

log 库(来自go-ethereum)

使用

  1. 设置全局logger
log.Root().SetHandler(log.NewFileLvlHandler("app.log", 1024*1024, "debug"))
  1. 使用全局logger
log.Info("some msg here","err",err)