Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logger *zap.SugaredLogger // Debugw logs a message with some additional context. // The variadic key-value pairs are treated as they are in With. Debugw wfunc // Infow logs a message with some additional context. // The variadic key-value pairs are treated as they are in With. Infow wfunc // Warnw logs a message with some additional context. // The variadic key-value pairs are treated as they are in With. Warnw wfunc // Errorw logs a message with some additional context. // The variadic key-value pairs are treated as they are in With. Errorw wfunc // Panicw logs a message with some additional context, // then panics. The variadic key-value pairs are treated as they are in With. Panicw wfunc // Sync flushes any buffered log entries. Sync func() error )
Functions ¶
Types ¶
type Level ¶
type Level int
Level is a logging priority. Higher levels are more important.
const ( // LevelDebug logs are typically voluminous, // and are usually disabled in production. LevelDebug Level = 1 // LevelInfo is the default logging priority. LevelInfo Level = 2 // LevelWarn logs are more important than Info, // but donn't need individual human review. LevelWarn Level = 3 // LevelError logs are high-priority. // If an application is running smoothly, // Error logs shouldn't appear. LevelError Level = 4 )
Click to show internal directories.
Click to hide internal directories.