Documentation ¶
Index ¶
- Constants
- func Close() error
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func InitFlags(flags *pflag.FlagSet)
- func InitViper(flags *viper.Viper)
- func Initialize(opts ...option)
- func NewLogger(prefix string) *logrus.Entry
- func OptionConfig(opts ...option)
- func ViperConfig(flags *viper.Viper)
- func Warnf(format string, args ...interface{})
- func WithFormat(ft string) option
- func WithPrefix(px string) option
- type Logger
Constants ¶
View Source
const (
FieldsPrefix = "prefix"
)
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(opts ...option)
func OptionConfig ¶
func OptionConfig(opts ...option)
func ViperConfig ¶
func WithFormat ¶
func WithFormat(ft string) option
func WithPrefix ¶
func WithPrefix(px string) option
Types ¶
Click to show internal directories.
Click to hide internal directories.