rails_error_logger 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4891aef8239745d5e3db82960fe1e6f71b181ebf
4
- data.tar.gz: a8fa130516ae141a8d746aa8c9d6fc4505332266
3
+ metadata.gz: 9aeb7a4328fe158e69b47213aa1b8be2f87443e0
4
+ data.tar.gz: 18926613973817a66e6f330ee548d6ac1f88a3e9
5
5
  SHA512:
6
- metadata.gz: 3f0868bff50f35ff1cfe81e949d23c7c316f9ddc1cb9561d1f06449007a58ee2cad283a9479832dc21aecd3d9b38b1d80cabc50fefc15015f2c80d68aa05b5bd
7
- data.tar.gz: 7400725208feb2d4de0465c591ef15691cae585e20d4fd774ffd82362c8264eb6411b5e11030ab9e8eec4c9a147d6dc0c8fe87abe93c68a5da2c07ead157bb43
6
+ metadata.gz: ff1b6abf2fc5d82b7e5f6eb6dc001aeac8952055bb3bf2127ce56ac54df7552148eb458259d1592ca760400eb3e30118ebf161057cc1b409e92e0bb3c60373ef
7
+ data.tar.gz: 3956943377e2b073ecd6e6c5807e3f5653e1de63eda9d81d887e38db3cfb64bbcc4736ba8fd23101f8131269d1130a497f1209329c3069631fe7284b29af28a5
@@ -3,9 +3,13 @@ require 'rails_error_logger/logger'
3
3
 
4
4
  module RailsErrorLogger
5
5
  class Railtie < Rails::Railtie
6
- initializer :add_bugsnag_logger, before: :load_config_initializers do
7
- error_logger = RailsErrorLogger::Logger.new(:bugsnag)
8
- error_logger.level = Logger::WARN
6
+ config.error_logger = ActiveSupport::OrderedOptions.new
7
+ config.error_logger.log_device = :bugsnag
8
+ config.error_logger.log_level = Logger::ERROR
9
+
10
+ initializer :add_error_logger, before: :load_config_initializers do
11
+ error_logger = RailsErrorLogger::Logger.new(config.error_logger.log_device)
12
+ error_logger.level = config.error_logger.log_level
9
13
  Rails.logger.extend ActiveSupport::Logger.broadcast(error_logger)
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module RailsErrorLogger
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_error_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler