package log
Import Path
github.com/hibiken/asynq/internal/log (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
Package log exports logging related types and functions.
Package-Level Type Names (total 3)
Base supports logging at various log levels.
Debug logs a message at Debug level.
Error logs a message at Error level.
Fatal logs a message at Fatal level
and process will exit with status set to 1.
Info logs a message at Info level.
Warn logs a message at Warning level.
*Logger
github.com/hibiken/asynq.Logger (interface)
github.com/ipfs/go-log/v2.EventLogger (interface)
github.com/ipfs/go-log/v2.StandardLogger (interface)
*github.com/ipfs/go-log/v2.ZapEventLogger
*go.uber.org/zap.SugaredLogger
Base : github.com/hibiken/asynq.Logger
func NewLogger(base Base) *Logger
Level represents a log level.
String is part of the fmt.Stringer interface.
Used for testing and debugging purposes.
Level : expvar.Var
Level : fmt.Stringer
func (*Logger).SetLevel(v Level)
const DebugLevel
const ErrorLevel
const FatalLevel
const InfoLevel
const WarnLevel
Logger logs message to io.Writer at various log levels.
(*Logger) Debug(args ...interface{})
(*Logger) Debugf(format string, args ...interface{})
(*Logger) Error(args ...interface{})
(*Logger) Errorf(format string, args ...interface{})
(*Logger) Fatal(args ...interface{})
(*Logger) Fatalf(format string, args ...interface{})
(*Logger) Info(args ...interface{})
(*Logger) Infof(format string, args ...interface{})
SetLevel sets the logger level.
It panics if v is less than DebugLevel or greater than FatalLevel.
(*Logger) Warn(args ...interface{})
(*Logger) Warnf(format string, args ...interface{})
*Logger : Base
*Logger : github.com/hibiken/asynq.Logger
*Logger : github.com/stretchr/testify/assert.TestingT
func NewLogger(base Base) *Logger
Package-Level Functions (only one)
NewLogger creates and returns a new instance of Logger.
Log level is set to DebugLevel by default.
Package-Level Constants (total 5)
DebugLevel is the lowest level of logging.
Debug logs are intended for debugging and development purposes.
ErrorLevel is used for undesired and unexpected events that
the program can recover from.
FatalLevel is used for undesired and unexpected events that
the program cannot recover from.
InfoLevel is used for general informational log messages.
WarnLevel is used for undesired but relatively expected events,
which may indicate a problem.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |