Documentation ¶
Index ¶
- Variables
- func NewGrayLogCore(graylogURL string, facility string, level Level) (zapcore.Core, error)
- func NewSentryCore(dsn string, tags map[string]string) (zapcore.Core, error)
- func NewStandardCore(pretty bool, level Level) (zapcore.Core, error)
- func NewZapLogger(logger *zaplib.Logger) logger.Logger
- func NewZapLoggerWithCores(cores ...zapcore.Core) logger.Logger
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultStdLogger logger.Logger
View Source
var NopLogger logger.Logger
Functions ¶
func NewGrayLogCore ¶
Types ¶
type Level ¶
type Level int8
A Level is a logging priority. Higher levels are more important.
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel Level = iota - 1 // InfoLevel is the default logging priority. InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel // DPanicLevel logs are particularly important errors. In development the // logger panics after writing the message. DPanicLevel // PanicLevel logs a message, then panics. PanicLevel // FatalLevel logs a message, then calls os.Exit(1). FatalLevel )
Click to show internal directories.
Click to hide internal directories.