Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AvailableFormats = Formats{FormatJSON, FormatConsole}
)
Functions ¶
func NewFromOptions ¶
Types ¶
type Format ¶
type Format string
type Options ¶
type Options struct { // Enable debug logs Debug bool // Log format (JSON or plain text) Format Format }
Options exports options struct to be used by cmd's.
var ( Logger *zap.SugaredLogger DefaultOptions Options )
func NewDefaultOptions ¶
func NewDefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.