remove logger
parent
aff9de10bc
commit
dba41c2fad
@ -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
|
||||
}
|
Loading…
Reference in New Issue