diff --git a/config/environments/development.rb b/config/environments/development.rb index ec9eb9129e..1724bb4836 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -75,6 +75,5 @@ config.logger = ActiveSupport::Logger.new(config.paths["log"].first, 1, 50.megabytes) - config.log_format = :color config.semantic_logger.backtrace_level = :debug end diff --git a/config/environments/production.rb b/config/environments/production.rb index e6ff7105a7..7550964e13 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -52,7 +52,6 @@ # Include generic and useful information about system operation, but avoid logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). config.log_level = :info - config.log_format = :json # Prepend all log lines with the following tags. config.log_tags = [:request_id] @@ -82,7 +81,8 @@ config.rails_semantic_logger.add_file_appender = false config.semantic_logger.add_appender( io: $stdout, - formatter: config.rails_semantic_logger.format, + level: config.log_level, + formatter: :json, ) end