DEV Community

Shinji NAKAMATSU
Shinji NAKAMATSU Subscriber

Posted on

2 1

Set the Sidekiq log level to the Rails log level

Sidekiq's default Log Level is INFO, and its settings are indepent from Rails.

Sidekiq uses the standard Ruby Logger class for logging.

To change the Log Level in the Logger class, give a constant value for Severity using the #level= method.

Set the Sidekiq Log Level for the Logger used by Sidekiq in config/initializers/sidekiq.rb as follows:

Sidekiq.configure_server do |config|
  config.logger.level = Rails.logger.level
end
Enter fullscreen mode Exit fullscreen mode

See also:

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more