Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Level string `help:"the minimum log level to log" default:"info"` Development bool `help:"if true, set logging to development mode" default:"false"` Caller bool `help:"if true, log function filename and line number" default:"false"` Stack bool `help:"if true, log stack traces" default:"false"` Encoding string `help:"configures log encoding. can either be 'console', 'json', 'pretty', or 'gcloudlogging'." default:"console"` Output string `help:"can be stdout, stderr, or a filename" default:"stderr"` CustomLevel string `` /* 168-byte string literal not displayed */ }
Config is the configuration for the logging.
type RootLogger ¶
RootLogger is a wrapper type to register the root logger.
func NewRootLogger ¶
func NewRootLogger(config *zap.Config) (RootLogger, error)
NewRootLogger creates the actual logger.
Click to show internal directories.
Click to hide internal directories.