-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Description
Hi, Sidekiq allows users to enable logging per-job so you can do this:
SomeJob.set(log_level: :debug).perform_async(123)This requires a thread-local log level. I have a ::Logger monkeypatch to enable this feature. Would you like me to create a PR to upstream it? This would allow the user to do something like:
log = ::Logger.new(STDOUT, level: Logger::INFO)
log.debug("Not logged")
Thread.new do
log.at_level(Logger::DEBUG) do
log.debug("Logged")
end
end.join
log.debug("Not logged")ioquatix
Metadata
Metadata
Assignees
Labels
No labels