lib/ahoy.rb in ahoy_matey-1.1.1 vs lib/ahoy.rb in ahoy_matey-1.2.0
- old
+ new
@@ -20,11 +20,13 @@
require "ahoy/deckhands/utm_parameter_deckhand"
require "ahoy/stores/base_store"
require "ahoy/stores/active_record_store"
require "ahoy/stores/active_record_token_store"
require "ahoy/stores/log_store"
+require "ahoy/stores/fluentd_store"
require "ahoy/stores/mongoid_store"
+require "ahoy/logger_silencer"
require "ahoy/engine"
require "ahoy/warden" if defined?(Warden)
# background jobs
begin
@@ -80,5 +82,12 @@
self.track_bots = false
end
ActionController::Base.send :include, Ahoy::Controller
ActiveRecord::Base.send(:extend, Ahoy::Model) if defined?(ActiveRecord)
+
+Logger.send :include, Ahoy::LoggerSilencer
+
+begin
+ require "syslog/logger"
+ Syslog::Logger.send :include, Ahoy::LoggerSilencer
+rescue LoadError; end