rails_syslogger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_syslogger/version.rb +1 -1
- data/lib/rails_syslogger.rb +2 -2
- metadata +3 -3
data/lib/rails_syslogger.rb
CHANGED
@@ -5,8 +5,8 @@ require 'rails'
|
|
5
5
|
module RailsSyslogger
|
6
6
|
|
7
7
|
class Railtie < Rails::Railtie
|
8
|
-
initializer
|
9
|
-
app.config.logger =
|
8
|
+
initializer :initialize_rails_syslogger, :after => :initialize_logger do |app|
|
9
|
+
Rails.logger = app.config.logger = RailsSyslogger.assign_syslogger_by_environment
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_syslogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: syslogger
|
16
|
-
requirement: &
|
16
|
+
requirement: &70109469196980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.2.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70109469196980
|
25
25
|
description: This allows you to set some nice default syslog configuration options
|
26
26
|
for your rails environment, using syslog for all production and development environments,
|
27
27
|
except your local development environment. Set the environment variable "RAILS_DEV"
|