lib/ratchetio/configuration.rb in ratchetio-0.4.4 vs lib/ratchetio/configuration.rb in ratchetio-0.4.5
- old
+ new
@@ -1,14 +1,17 @@
+require 'logger'
+
module Ratchetio
class Configuration
attr_accessor :access_token
attr_accessor :branch
+ attr_accessor :default_logger
attr_accessor :enabled
attr_accessor :endpoint
- attr_accessor :exception_level_filters
attr_accessor :environment
+ attr_accessor :exception_level_filters
attr_accessor :framework
attr_accessor :logger
attr_accessor :person_method
attr_accessor :person_id_method
attr_accessor :person_username_method
@@ -16,9 +19,10 @@
attr_accessor :root
DEFAULT_ENDPOINT = 'https://submit.ratchet.io/api/1/item/'
def initialize
+ @default_logger = lambda { Logger.new(STDERR) }
@enabled = true
@endpoint = DEFAULT_ENDPOINT
@framework = 'Plain'
@exception_level_filters = {
'ActiveRecord::RecordNotFound' => 'warning',