Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sidekiq logging to both terminal and log file

I'm using Sidekiq to queue up some jobs in my Rails server. As per the Logging wiki, it's as simple as adding the following in config/sidekiq.yml

---
:verbose: false
:pidfile: ./tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log
:concurrency:  25

However, now this only logs to that log file, what if I do want to write out to STDOUT as well (atleast in development)?

like image 492
absessive Avatar asked Sep 25 '14 20:09

absessive


1 Answers

Get rid of the logfile statement.

bundle exec sidekiq | tee ./log/sidekiq.log
like image 92
Mike Perham Avatar answered Oct 24 '22 18:10

Mike Perham