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 +4 -4
- data/lib/rails_error_logger/railtie.rb +7 -3
- data/lib/rails_error_logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aeb7a4328fe158e69b47213aa1b8be2f87443e0
|
4
|
+
data.tar.gz: 18926613973817a66e6f330ee548d6ac1f88a3e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
7
|
-
|
8
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|