A
A
Anton Ivanov2017-01-14 07:09:48
Ruby on Rails
Anton Ivanov, 2017-01-14 07:09:48

How to remove console logging when using rails server?

Hello.
When using rails server puma, the log is displayed in both the console and the log file.
I can turn off logging using config.logger, but I can't turn off console logging.
If I change log_level, then it affects both the file and the console, respectively.
I want the log to continue to be written to a file, but only my output (p, puts, print, etc.) gets to the console.
Is this possible with rails server?
Or tell me how to run puma in RubyMine without a rails server? Unicorn runs as unicorn_rails and puma runs as rails server Puma
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question