From 3a09faf4b863c986066ba357e8193b2453eca93b Mon Sep 17 00:00:00 2001 From: liangzy Date: Wed, 6 May 2020 14:33:04 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.2=20=E5=A2=9E=E5=8A=A0=20glogs.Debug=20?= =?UTF-8?q?=E7=AD=89=E7=9B=B4=E6=8E=A5=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aaf9560..7f17db7 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ logger.Critical("出错了") logger.Info("出错了") ``` -4. 如果需要写入es, 必须设置环境变量 `GRLOG_APP_NAME`, 不能有反斜杠, 如 +4. 如果需要写入es 或 alils, 必须设置环境变量 `GRLOG_APP_NAME`, 不能有反斜杠, 如 ```shell script export GRLOG_APP_NAME=mkt.gaore.com; ``` @@ -32,6 +32,10 @@ export GRLOG_APP_NAME=mkt.gaore.com; import _ "golib.gaore.com/GaoreGo/grlogs/logs/es" ``` +```go +import _ "golib.gaore.com/GaoreGo/grlogs/logs/alils" +``` + 5. 文件日志会写入到 `./runtime/logs/` 文件夹 **请务必在项目构建阶段创建该目录**