文件名称:golanglog:简约的Golang记录器,记录到stdout和文件,并支持日志级别
文件大小:3KB
文件格式:ZIP
更新时间:2024-05-31 14:34:24
go golang minimal logger logging
GoLangLog 简约的Golang记录器,可记录到stdout和文件。 安装 go get github.com/munirehmad/golanglog 用法 package main import ( "github.com/munirehmad/golanglog" ) func main(){ log := golanglog.NewLogger("./logs/main.log", true) /* Available Logging Levels are LDebug LInfo LWarn LError LFatal*/ log.Level = golanglog.LInfo // This will be ignored because log level is set at I
【文件预览】:
golanglog-master
----.gitignore(35B)
----golanglog.go(2KB)
----LICENSE(1KB)
----README.md(818B)
----example()
--------example_usage.go(287B)