Documentation ¶
Index ¶
- func NewLogger(opts ...logbase.Option) logbase.Logger
- func ReportCaller() logbase.Option
- func WithExitFunc(exit func(int)) logbase.Option
- func WithJSONFormatter(formatter *logrus.JSONFormatter) logbase.Option
- func WithLevelHooks(hooks logrus.LevelHooks) logbase.Option
- func WithLogger(l logrus.StdLogger) logbase.Option
- func WithTextTextFormatter(formatter *logrus.TextFormatter) logbase.Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportCaller ¶
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) logbase.Option
func WithLevelHooks ¶
func WithLevelHooks(hooks logrus.LevelHooks) logbase.Option
func WithTextTextFormatter ¶
func WithTextTextFormatter(formatter *logrus.TextFormatter) logbase.Option
Types ¶
Click to show internal directories.
Click to hide internal directories.