From 2598eb986e5bf5aacbb81a1f4dc0ad587a2aa8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 24 Jun 2024 16:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=8F=98=E9=87=8F=E7=9A=84=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logger.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/logger.go b/logger.go index df5bd3c..e599796 100644 --- a/logger.go +++ b/logger.go @@ -25,3 +25,22 @@ const ( const ( LogPathDefault = "logs" ) + +const ( + LogMessageKey = "message" + LogLevelKey = "level" + LogTimeKey = "time" + LogCallerKey = "caller" +) + +const ( + LogAccessName = "access.log" + LogRequestName = "request.log" + LogProxyName = "proxy.log" + LogBusinessName = "business.log" + LogMonitorName = "monitor.log" + LogDatabaseName = "database.log" + LogRateLimitName = "rate-limit.log" + LogEventName = "event.log" + LogCacheName = "cache.log" +)