Add base site, needs clean-up
This commit is contained in:
@@ -10,13 +10,13 @@ func New() *zap.SugaredLogger {
|
||||
consoleEncoder := zapcore.NewConsoleEncoder(zap.NewDevelopmentEncoderConfig())
|
||||
jsonEncoder := zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig())
|
||||
|
||||
consoleDebugging := zapcore.Lock(os.Stdout)
|
||||
lowPriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool {
|
||||
return lvl < zapcore.ErrorLevel
|
||||
})
|
||||
highPriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool {
|
||||
return lvl >= zapcore.ErrorLevel
|
||||
})
|
||||
consoleDebugging := zapcore.Lock(os.Stdout)
|
||||
consoleErrors := zapcore.Lock(os.Stderr)
|
||||
core := zapcore.NewTee(
|
||||
zapcore.NewCore(jsonEncoder, consoleErrors, highPriority),
|
||||
|
Reference in New Issue
Block a user