Documentation ¶
Index ¶
- func NewLogrusLogger(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 LoggingFormatter
- type LogrusOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogrusLogger ¶
New builds a new logger based on options.
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) logger.Option
func WithLevelHooks ¶
func WithLevelHooks(hooks logrus.LevelHooks) logger.Option
func WithTextTextFormatter ¶
func WithTextTextFormatter(formatter *logrus.TextFormatter) logger.Option
Types ¶
type LoggingFormatter ¶
type LoggingFormatter struct {
// contains filtered or unexported fields
}
type LogrusOptions ¶
Click to show internal directories.
Click to hide internal directories.