lib/moromi/error.rb in moromi-error-0.2.0 vs lib/moromi/error.rb in moromi-error-0.3.0

- old
+ new

@@ -1,8 +1,8 @@ require 'moromi/error/config' -require 'moromi/error/loggerable' require 'moromi/error/default_logger' +require 'moromi/error/default_information_builder' require 'moromi/error/engine' require 'moromi/error/errors' require 'moromi/error/renderer' require 'moromi/error/rescue' @@ -14,12 +14,21 @@ def self.config @config end + def self.default_severity_mappings + { + Moromi::Error::Default => Logger::Severity::DEBUG, + ActionController::RoutingError => Logger::Severity::WARN + } + end + configure do |config| config.debug = false config.logger = Moromi::Error::DefaultLogger.new - config.store_url = '' + config.severity_mappings = default_severity_mappings + config.information_builder_klass = Moromi::Error::DefaultInformationBuilder + config.use_exception_notifier = false end end end