Documentation ¶
Index ¶
- func IsTemporary(err error) bool
- func Logger(ctx context.Context) logrus.FieldLogger
- func LoggerWithFields(ctx context.Context, fields logrus.Fields) (context.Context, logrus.FieldLogger)
- func NewRNG(seed int64) *rand.Rand
- func NewSyslogHook(url *url.URL, prefix string) error
- func SetLogDest(to, prefix string)
- func SetLogLevel(ll string)
- func WithLogger(ctx context.Context, l logrus.FieldLogger) context.Context
- type Backoff
- type BoxTime
- type Clock
- type Temporary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTemporary ¶
func Logger ¶
func Logger(ctx context.Context) logrus.FieldLogger
Logger returns the structured logger.
func LoggerWithFields ¶
func LoggerWithFields(ctx context.Context, fields logrus.Fields) (context.Context, logrus.FieldLogger)
Attempt at simplifying this whole logger in the context thing Could even make this take a generic map, then the logger that gets returned could be used just like the stdlib too, since it's compatible
func SetLogDest ¶
func SetLogDest(to, prefix string)
func SetLogLevel ¶
func SetLogLevel(ll string)
func WithLogger ¶
WithLogger stores the logger.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.