We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have created a file named: config/initializers/semantic_logger.rb with the following config inside
config/initializers/semantic_logger.rb
Rails.application.configure do #config.rails_semantic_logger.add_file_appender = false config.semantic_logger.add_appender( file_name: "#{Rails.root}/log/#{Rails.env}.log", formatter: :default, filter: -> log { log.name != 'HealthCheck::HealthCheckController' } ) end
but after this change, I am still seeing health_check logs like the one below on the log/development.log file
log/development.log
2024-10-23 13:28:50.021360 I [182010:puma srv tp 001] {client_ip: ::1} (15.3ms) HealthCheck::HealthCheckController -- Completed #index -- { :action => "index", :allocations => 59294, :controller => "HealthCheck::HealthCheckController", :db_runtime => 0.2, :format => "TEXT", :method => "GET", :path => "/health_check", :status => 200, :status_message => "OK", :view_runtime => 2.78 }
I also tried adding config.rails_semantic_logger.add_file_appender = false before adding the appender but it didn't make a difference
config.rails_semantic_logger.add_file_appender = false
The text was updated successfully, but these errors were encountered:
I tried adding
config.rails_semantic_logger.filter = Proc.new { |log| log.name != 'HealthCheck::HealthCheckController'}
but didn't work either
Sorry, something went wrong.
No branches or pull requests
Environment
Description
I have created a file named:
config/initializers/semantic_logger.rb
with the following config insidebut after this change, I am still seeing health_check logs like the one below on the
log/development.log
fileI also tried adding
config.rails_semantic_logger.add_file_appender = false
before adding the appender but it didn't make a differenceExpected Behavior
The text was updated successfully, but these errors were encountered: