Browse Source

no more require_relative formatters

main
pvincent 2 years ago
parent
commit
eac8cbe6b8
  1. 1
      config/application.rb
  2. 1
      config/environments/development.rb

1
config/application.rb

@ -11,6 +11,7 @@ class Application < Rails::Application
config.load_defaults 7.0
# Efficient logging with Semantic Logger
require Rails.root.join("lib", "formatters", "basic_formatter")
config.rails_semantic_logger.add_file_appender = false
config.rails_semantic_logger.semantic = false
config.rails_semantic_logger.started = true

1
config/environments/development.rb

@ -69,6 +69,5 @@ Rails.application.configure do
# config.action_cable.disable_request_forgery_protection = true
# Semantic Logger in console log only!
require_relative "../../lib/formatters/basic_formatter"
config.semantic_logger.add_appender(io: $stdout, formatter: BasicFormatter.new)
end
Loading…
Cancel
Save