Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg *LogCliConfig) zerolog.Logger
Types ¶
type CheckedFormat ¶
type CheckedFormat struct { kong.MapperValue // contains filtered or unexported fields }
func (*CheckedFormat) Decode ¶
func (f *CheckedFormat) Decode(ctx *kong.DecodeContext) error
func (*CheckedFormat) Set ¶
func (f *CheckedFormat) Set(s string) error
func (*CheckedFormat) String ¶
func (f *CheckedFormat) String() string
type CheckedLevel ¶
type CheckedLevel struct { kong.MapperValue // contains filtered or unexported fields }
func (*CheckedLevel) Decode ¶
func (l *CheckedLevel) Decode(ctx *kong.DecodeContext) error
func (*CheckedLevel) Set ¶
func (l *CheckedLevel) Set(s string) error
func (*CheckedLevel) String ¶
func (l *CheckedLevel) String() string
type LogCli ¶
type LogCli struct {
LogCliConfig `embed prefix:"log."`
}
type LogCliConfig ¶
type LogCliConfig struct { Format CheckedFormat `name:"format" help:"Output format of log messages. One of: [console, json, json-sd]" default:"console" env:"LOG_FORMAT"` Level CheckedLevel `` /* 158-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.