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 ¶
Types ¶
type Format ¶
type Format string
type LogrusFormat ¶
type LogrusFormat string
const ( LogrusFormatJSON LogrusFormat = "json" LogrusFormatConsole LogrusFormat = "console" )
func (*LogrusFormat) Set ¶
func (f *LogrusFormat) Set(s string) error
Set implements the cli.Value and flag.Value interfaces.
func (*LogrusFormat) String ¶
func (f *LogrusFormat) String() string
String implements the cli.Value and flag.Value interfaces.
func (*LogrusFormat) Type ¶
func (f *LogrusFormat) Type() string
Type implements the pflag.Value interfaces.
type LogrusFormats ¶
type LogrusFormats []LogrusFormat
func (LogrusFormats) String ¶
func (f LogrusFormats) String() string
Click to show internal directories.
Click to hide internal directories.