Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit 693178c

Browse files
committed
Add Logtail logger configuration to application.rb for enhanced logging
1 parent 32302e6 commit 693178c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/application.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ class Application < Rails::Application
2626
# config.time_zone = "Central Time (US & Canada)"
2727
# config.eager_load_paths << Rails.root.join("extras")
2828
config.active_support.to_time_preserves_timezone = :zone
29+
30+
config.logger = Logtail::Logger.create_default_logger(ENV["LOGTAIL_API_KEY"], ingesting_host: ENV["LOGTAIL_INGESTING_HOST"])
2931
end
3032
end

0 commit comments

Comments
 (0)