From 58a0df5e59644414403d79e53cc92fd20b6250c5 Mon Sep 17 00:00:00 2001 From: Jeremy-boo Date: Thu, 22 Oct 2020 16:23:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middlerware/logger/const.go | 1 + middlerware/logger/logger.go | 1 + 2 files changed, 2 insertions(+) diff --git a/middlerware/logger/const.go b/middlerware/logger/const.go index 14ca895..a5ecb59 100644 --- a/middlerware/logger/const.go +++ b/middlerware/logger/const.go @@ -1,5 +1,6 @@ package logger +// Log constants, should be written in the configuration file. const ( LogLevel = "debug" FileName = "./log/debug.log" diff --git a/middlerware/logger/logger.go b/middlerware/logger/logger.go index 6606ce8..3abbee9 100644 --- a/middlerware/logger/logger.go +++ b/middlerware/logger/logger.go @@ -6,6 +6,7 @@ import ( "go.uber.org/zap/zapcore" ) +// Logger zap log var Logger *zap.Logger // InitLogger Initialization log