Versions in this module Expand all Collapse all v1 v1.0.1 Aug 7, 2017 Changes in this version + func Formatters() []string + func Hooks() []string + func Logger(loggerName ...string) (logger *logrus.Logger) + func NewFormatter(name string, options Options) (formatter logrus.Formatter, err error) + func NewHook(name string, options Options) (hook logrus.Hook, err error) + func NewJSONFormatter(options Options) (formatter logrus.Formatter, err error) + func NewLogger(name string, conf LoggerConfig) (logger *logrus.Logger, err error) + func NewNullFormatter(options Options) (formatter logrus.Formatter, err error) + func NewNullWriter(options Options) (writer io.Writer, err error) + func NewStderrWriter(options Options) (writer io.Writer, err error) + func NewStdoutWriter(options Options) (writer io.Writer, err error) + func NewTextFormatter(options Options) (formatter logrus.Formatter, err error) + func NewWriter(name string, options Options) (writer io.Writer, err error) + func RegisterFormatter(name string, newFormatterFunc NewFormatterFunc) + func RegisterHook(name string, newHookFunc NewHookFunc) + func RegisterWriter(name string, newWriterFunc NewWriterFunc) + func Writers() []string + type Environments struct + RunEnv string + type FormatterConfig struct + Name string + Options Options + type HookConfig struct + Name string + Options Options + type JSONFormatterConfig struct + TimestampFormat string + type LoggerConfig struct + Formatter FormatterConfig + Hooks []HookConfig + Level string + Out WriterConfig + func (conf *LoggerConfig) Validate(env ...string) (err error) + type LoggerItem struct + Config map[string]LoggerConfig + Name string + type LogrusMate struct + func NewLogrusMate(mateConf LogrusMateConfig) (logrusMate *LogrusMate, err error) + func (p *LogrusMate) Logger(loggerName ...string) (logger *logrus.Logger) + func (p LogrusMate) NewLogger(name string, conf LoggerConfig) (logger *logrus.Logger, err error) + type LogrusMateConfig struct + EnvironmentKeys Environments + Loggers []LoggerItem + func LoadLogrusMateConfig(filename string) (conf LogrusMateConfig, err error) + func (p *LogrusMateConfig) RunEnv() string + func (p *LogrusMateConfig) Serialize() (data []byte, err error) + func (p *LogrusMateConfig) Validate() (err error) + type NewFormatterFunc func(Options) (formatter logrus.Formatter, err error) + type NewHookFunc func(Options) (hook logrus.Hook, err error) + type NewWriterFunc func(Options) (writer io.Writer, err error) + type NullFormatter struct + func (NullFormatter) Format(e *logrus.Entry) ([]byte, error) + type NullWriter struct + func (w *NullWriter) Write(p []byte) (n int, err error) + type Options map[string]interface + func (p Options) Float64(key string) (val float64, err error) + func (p Options) Int(key string) (val int, err error) + func (p Options) Object(key string, v interface{}) (err error) + func (p Options) String(key string) (val string, err error) + func (p Options) ToObject(v interface{}) (err error) + type TextFormatterConfig struct + DisableColors bool + DisableSorting bool + DisableTimestamp bool + ForceColors bool + FullTimestamp bool + TimestampFormat string + type WriterConfig struct + Name string + Options Options