Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AvailableFormats = Formats{FormatJSON, FormatConsole}
)
View Source
var (
AvailableLogrusFormats = LogrusFormats{LogrusFormatJSON, LogrusFormatConsole}
)
View Source
var Logger *zap.SugaredLogger
Functions ¶
func NewFromOptions ¶ added in v2.21.0
Types ¶
type Format ¶
type Format string
type LogrusFormat ¶ added in v2.21.0
type LogrusFormat string
const ( LogrusFormatJSON LogrusFormat = "json" LogrusFormatConsole LogrusFormat = "console" )
func (*LogrusFormat) Set ¶ added in v2.21.0
func (f *LogrusFormat) Set(s string) error
Set implements the cli.Value and flag.Value interfaces.
func (*LogrusFormat) String ¶ added in v2.21.0
func (f *LogrusFormat) String() string
String implements the cli.Value and flag.Value interfaces.
func (*LogrusFormat) Type ¶ added in v2.21.0
func (f *LogrusFormat) Type() string
Type implements the pflag.Value interfaces.
type LogrusFormats ¶ added in v2.21.0
type LogrusFormats []LogrusFormat
func (LogrusFormats) String ¶ added in v2.21.0
func (f LogrusFormats) String() string
Click to show internal directories.
Click to hide internal directories.