From 0b835b0a5c9afe988ce7013358c164c1f52e0e45 Mon Sep 17 00:00:00 2001 From: Stanly Date: Thu, 11 Jan 2024 15:38:22 +0800 Subject: [PATCH] Remove logger --- logger/logger.go | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 logger/logger.go diff --git a/logger/logger.go b/logger/logger.go deleted file mode 100644 index 03ef6b6..0000000 --- a/logger/logger.go +++ /dev/null @@ -1,25 +0,0 @@ -package logger - -import ( - "go.uber.org/zap" -) - -// NewLoggerProduction 正式版紀錄 -func NewLoggerProduction() (*zap.SugaredLogger, error) { - logger, err := zap.NewProduction() - if err != nil { - return nil, err - } - - return logger.Sugar(), nil -} - -// NewLoggerDevelopment 開發版紀錄 -func NewLoggerDevelopment() (*zap.SugaredLogger, error) { - logger, err := zap.NewDevelopment() - if err != nil { - return nil, err - } - - return logger.Sugar(), nil -}