9 Star 36 Fork 13

phachon / go-logger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
api.go 475 Bytes
一键复制 编辑 原始数据 按行查看 历史
phachon 提交于 2019-12-15 11:20 . update go mod
package main
import (
"github.com/phachon/go-logger"
)
func main() {
logger := go_logger.NewLogger()
apiConfig := &go_logger.ApiConfig{
Url: "http://127.0.0.1:8081/index.php",
Method: "GET",
Headers: map[string]string{},
IsVerify: false,
VerifyCode: 0,
}
logger.Attach("api", go_logger.LOGGER_LEVEL_DEBUG, apiConfig)
logger.SetAsync()
logger.Emergency("this is a emergency log!")
logger.Alert("this is a alert log!")
logger.Flush()
}
Go
1
https://gitee.com/phachon/go-logger.git
git@gitee.com:phachon/go-logger.git
phachon
go-logger
go-logger
master

搜索帮助