Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfig ¶
func SetConfig(logger *logrus.Logger, conf mate.LoggerConfig) (err error)
SetConfig take a logrus logger instance and a conf mate.LoggerConfig. then apply conf specification to logrus instance. It returns an error if failed.
func UnmarshalConfiguration ¶
func UnmarshalConfiguration(viper *viper.Viper) (conf mate.LoggerConfig)
UnmarshalConfiguration read configuration from viper. It returns a logrus_mate logger configuration instance.
func UnmarshalConfigurationByKey ¶
func UnmarshalConfigurationByKey(key string, viper *viper.Viper) (conf mate.LoggerConfig)
UnmarshalConfigurationByKey read configuration from viper by a category key.
e.g., if you have all your logging properties under a common key logging
It returns a logrus_mate logger configuration instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.