mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #143] [FEATURE REQUEST] Allow setting log levels #1059
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1059
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hibiken on GitHub (Apr 28, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/143
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
User of the package should be able to set the minimum log level.
This would be also useful in testing, since logs in CI are currently a bit noisy when running tests with -v flag.
Describe the solution you'd like
Add
LogLevelfield inConfigand defineLeveltype and expose predefined enums for each levelDescribe alternatives you've considered
Expose
DefaultLoggerand allow user to set level through that object.Cons of this approach is that we have to define a new type for
DefaultLoggerwhich hasSetLevel(l Level)as a method.Additional context
None for now
@hibiken commented on GitHub (May 16, 2020):
Closed via v.0.9.0