Sha256: 265822ee7f53d26041f8f4a30a8d24ae0ed53e1bdcaf015103c2073e6123706b

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

require 'yaml'
require 'will_paginate'

class Tartarus
  module Notifiers; end

  class << self
    def configuration
      @cached_configuration ||= YAML.load_file("#{Rails.root}/config/exceptions.yml")[Rails.env]
    end

    def logger_class
      configuration['logger_class'].constantize
    end
    
    def logging_enabled?
      configuration['logging_enabled'] == true
    end

    def log(controller, exception)
      logger_class.log(controller, exception)
    end
  end
end

require 'tartarus/rack'
require 'tartarus/logger'
require 'tartarus/notifiers/mail'
require 'tartarus/railtie'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tartarus-2.2 lib/tartarus.rb
tartarus-2.0.4 lib/tartarus.rb
tartarus-2.0.3 lib/tartarus.rb
tartarus-2.0.1 lib/tartarus.rb
tartarus-2.0.0 lib/tartarus.rb