|
@@ -18,7 +18,7 @@
|
|
|
go get bp.jydev.jianyu360.cn/BP/jylog
|
|
|
|
|
|
//使用 go mod
|
|
|
-import "bp.jydev.jianyu360.cn/BP/jylog"
|
|
|
+import "bp.jydev.jianyu360.cn/BP/jylog/golog"
|
|
|
|
|
|
//4个参数,参数不分先后顺序,整数代表保留天数,函数代表输出流(可多个),字符串代表定时任务或日志文件目录
|
|
|
|
|
@@ -76,11 +76,11 @@ type C struct {
|
|
|
```
|
|
|
|
|
|
//使用go get
|
|
|
-go get bp.jydev.jianyu360.cn/BP/zaplog
|
|
|
+go get bp.jydev.jianyu360.cn/BP/jylog
|
|
|
|
|
|
//使用 go mod,使用log别名,覆盖标准的输出log方法(Print、Println、Printf,使用info级别)
|
|
|
import (
|
|
|
- log "bp.jydev.jianyu360.cn/BP/zaplog"
|
|
|
+ log "bp.jydev.jianyu360.cn/BP/jylog/zaplog"
|
|
|
)
|
|
|
|
|
|
//初始化
|