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 WithSkip(skip int) logger.Option
- func WithTextTextFormatter(formatter *logrus.TextFormatter) logger.Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportCaller ¶
ReportCaller warning to use this option. because logrus doest not open CallerDepth option this will only print this package
func WithJSONFormatter ¶
func WithJSONFormatter(formatter *logrus.JSONFormatter) logger.Option
WithJSONFormatter withJSONFormatter
func WithLevelHooks ¶
func WithLevelHooks(hooks logrus.LevelHooks) logger.Option
WithLevelHooks withLevelHooks
func WithTextTextFormatter ¶
func WithTextTextFormatter(formatter *logrus.TextFormatter) logger.Option
WithTextTextFormatter withTextTextFormatter
Types ¶
Click to show internal directories.
Click to hide internal directories.