Documentation
¶
Index ¶
- Constants
- func AddHook(hook logrus.Hook)
- func Errorf(s string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(s string, args ...interface{})
- func SetLevel(level Level)
- func Warningf(s string, args ...interface{})
- func WithLogger(ctx context.Context, logger *Logger) context.Context
- type Config
- type Fields
- type Level
- type Logger
Constants ¶
View Source
const (
DebugLevel = Level(logrus.DebugLevel)
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
func ExtractLogger ¶
ExtractLogger returns the logger from the context. If no logger is found, a new logger is created. The context is updated with the new logger.
func (*Logger) WithFields ¶
Click to show internal directories.
Click to hide internal directories.