Sidekiq is logged in both terminal and log file

I am using Sidekiq to queue some jobs on my Rails server. According to the Logging wiki, it is as easy as adding the following to config / sidekiq.yml

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

      

However, it is now only the logs for this log file, what if I really want to write to STDOUT (at least in development)?

+3
ruby-on-rails-4 sidekiq log4r


source to share


1 answer


Get rid of the instruction log.



bundle exec sidekiq | tee ./log/sidekiq.log

      

+10


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics