Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-Configurable Log File #280

Open
yfeldblum opened this issue Aug 14, 2011 · 1 comment
Open

Non-Configurable Log File #280

yfeldblum opened this issue Aug 14, 2011 · 1 comment

Comments

@yfeldblum
Copy link

Delayed::Command sets up a Logger which cannot be configured without monkey-patching. This logger is used for DJ start/stop messages

There should be an easy, supported way to configure this logger.

For example, if the filesystem is readonly and Rails.logger is configured to be a Logger.new(STDOUT), then the DJ logger should also be configurable to the same logger.

@pedros007
Copy link

I think you can override the Delayed::Worker.logger in an initializer. To use whatever logger you have for rails for example:

# config/initializers/delayed_job_config.rb
Delayed::Worker.logger = Rails.logger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants