Documentation ¶ Index ¶ func SetupLogEncoder(developmentMode bool, options *zap.Options) *zap.Options type Level func (l Level) String() string func (l Level) Value() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetupLogEncoder ¶ func SetupLogEncoder(developmentMode bool, options *zap.Options) *zap.Options SetupLogEncoder sets additional logger configuration options when development mode is enabled. In this way, the log structure is lighter and more human-friendly when the development mode is enabled. Types ¶ type Level ¶ type Level int Level represents the log level. const ( // InfoLevel is the default log level. InfoLevel Level = 0 // DebugLevel is the debug log level. DebugLevel Level = 1 // TraceLevel is the trace log level. TraceLevel Level = 2 ) func (Level) String ¶ func (l Level) String() string func (Level) Value ¶ func (l Level) Value() int Value returns the integer value of the log level. Source Files ¶ View all Source files encoding.go levels.go Click to show internal directories. Click to hide internal directories.