Documentation ¶
Index ¶
- func NewLogger(opts ...logger.Option) logger.Logger
- func ReportCaller() logger.Option
- func WithExitFunc(exit func(int)) logger.Option
- func WithJSONFormatter(formatter *logrus.JSONFormatter) logger.Option
- func WithLevelHooks(hooks logrus.LevelHooks) logger.Option
- func WithLogger(l logrus.StdLogger) logger.Option
- func WithTextTextFormatter(formatter *logrus.TextFormatter) logger.Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportCaller ¶ added in v2.0.3
warning to use this option. because logrus doest not open CallerDepth option this will only print this package
func WithExitFunc ¶
func WithJSONFormatter ¶
func WithJSONFormatter(formatter *logrus.JSONFormatter) logger.Option
func WithLevelHooks ¶
func WithLevelHooks(hooks logrus.LevelHooks) logger.Option
func WithTextTextFormatter ¶
func WithTextTextFormatter(formatter *logrus.TextFormatter) logger.Option
Types ¶
Click to show internal directories.
Click to hide internal directories.