mirror of
https://github.com/khorevaa/logos.git
synced 2024-12-02 09:21:37 +02:00
30 lines
911 B
Go
30 lines
911 B
Go
package logos
|
|
|
|
import (
|
|
"go.uber.org/zap/zapcore"
|
|
)
|
|
|
|
const (
|
|
|
|
// OffLevel
|
|
OffLevel = zapcore.Level(-2)
|
|
// DebugLevel logs are typically voluminous, and are usually disabled in
|
|
// production.
|
|
DebugLevel = zapcore.DebugLevel
|
|
// InfoLevel is the default logging priority.
|
|
InfoLevel = zapcore.InfoLevel
|
|
// WarnLevel logs are more important than Info, but don't need individual
|
|
// human review.
|
|
WarnLevel = zapcore.WarnLevel
|
|
// ErrorLevel logs are high-priority. If an application is running smoothly,
|
|
// it shouldn't generate any error-level logs.
|
|
ErrorLevel = zapcore.ErrorLevel
|
|
// DPanicLevel logs are particularly important errors. In development the
|
|
// logger panics after writing the message.
|
|
DPanicLevel = zapcore.DPanicLevel
|
|
// PanicLevel logs a message, then panics.
|
|
PanicLevel = zapcore.PanicLevel
|
|
// FatalLevel logs a message, then calls os.Exit(1).
|
|
FatalLevel = zapcore.FatalLevel
|
|
)
|