Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TextFormatter is a text formatter name for logrus logger. TextFormatter = "text" // JSONFormatter is a JSON formatter name for logrus logger. JSONFormatter = "json" )
Variables ¶
This section is empty.
Functions ¶
func NewErrUnknownFormatter ¶
Types ¶
type Config ¶
type Config struct { Level string `validate:"required" default:"info"` Formatter string `validate:"required" default:"json"` }
Config is a logrus configuration which could be customized.
type ErrUnknownFormatter ¶
type ErrUnknownFormatter struct {
// contains filtered or unexported fields
}
func (*ErrUnknownFormatter) Error ¶
func (e *ErrUnknownFormatter) Error() string
Click to show internal directories.
Click to hide internal directories.