Documentation ¶
Index ¶
Constants ¶
View Source
const ExternalConfigName = "logger"
ExternalConfigName is the external config name of logger.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option struct { // Debug is logger level. Debug bool `desc:"Debug mode. Output all logs"` // Level is logger level. Level int32 `desc:"Log level. This field is no sense if debug is enabled"` // OverrideGlobal modifies nirvana global logger. OverrideGlobal bool `desc:"Override global logger"` }
Option contains basic configurations of logger.
func NewDefaultOption ¶ added in v0.2.0
func NewDefaultOption() *Option
NewDefaultOption creates default option.
Click to show internal directories.
Click to hide internal directories.