Documentation
¶
Index ¶
- Constants
- func Debug(ctx context.Context, fmt string, args ...interface{})
- func Error(ctx context.Context, fmt string, args ...interface{})
- func Info(ctx context.Context, fmt string, args ...interface{})
- func LogrusModule() fx.Option
- func NewInMemoryLogger() *inMemoryLogger
- func NewLogrusLogger() *logrusLogger
- func SetDefaultLogger(l Logger)
- func Warn(ctx context.Context, fmt string, args ...interface{})
- type Logger
Constants ¶
View Source
const ( LevelInfo = "info" LevelError = "error" LevelWarn = "warn" LevelDebug = "debug" )
Variables ¶
This section is empty.
Functions ¶
func LogrusModule ¶
func NewInMemoryLogger ¶
func NewInMemoryLogger() *inMemoryLogger
func NewLogrusLogger ¶
func NewLogrusLogger() *logrusLogger
func SetDefaultLogger ¶
func SetDefaultLogger(l Logger)
Types ¶
type Logger ¶
type Logger interface { Info(ctx context.Context, fmt string, args ...interface{}) Error(ctx context.Context, fmt string, args ...interface{}) Warn(ctx context.Context, fmt string, args ...interface{}) Debug(ctx context.Context, fmt string, args ...interface{}) WithFields(map[string]interface{}) Logger }
func DefaultLogger ¶
func DefaultLogger() Logger
func WithFields ¶
Click to show internal directories.
Click to hide internal directories.