Page 1 of 1
[12:56:45] kszarlej: I set already Base.logger and ActiveJob.loger to logstashlogger - but still some of the log messages are plaintext.
[14:02:14] kszarlej: hey guys, I am devops and I am wondering what are best practises for logging in Rails applications. One of developers is insists very firmly that Rails app must log everything to one file (both stderr&stdout). And these files are "have to be called" staging.log/production.log and I totally dont understand it. What is your approach and what are best practises in Rails?
[14:04:10] kszarlej: fryguy: but does these "defaults" have some special benefits for rails developers?
[14:07:34] kszarlej: tildes: fire up app using supervisor, apps should all log to STDOUT/STDERR only, and supervisor is supposed to capture both stdout and stderr of app process to disticnt files. (web.log and web.error.log)
[14:21:55] kszarlej: tbuehlmann: yeah, we want to dockerize rails so logging to stdout is the only way
[14:22:21] kszarlej: but I am struggiling with the fact why we want to keep STDERR and STDOUT in one file
[09:29:49] kszarlej: hey guys! I use Rails. Is there any possibility to make Rails ActiveRecord log in pure json so I can forward its logs to logstash?
[09:36:40] kszarlej: hey guys! Is there any possibility to make Rails ActiveRecord log in pure json so I can forward its logs to logstash? I have config.logger = LogStashLogger.new and most of the logs are in json but activerecord debug SQL are in plaintext