logger-syslog 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/lib/logger-syslog.rb +2 -2
- metadata +6 -6
data/README.rdoc
CHANGED
@@ -38,7 +38,7 @@ Version 1.6.7 takes a formatter as logger does and uses call to format the messa
|
|
38
38
|
By default, Logger::Syslog uses the program name 'rails' and the facility 'user', but this can be
|
39
39
|
changed via the arguments to Logger::Syslog.new:
|
40
40
|
|
41
|
-
RAILS_DEFAULT_LOGGER = Logger::Syslog.new('mygreatapp', Syslog::LOG_LOCAL7)
|
41
|
+
RAILS_DEFAULT_LOGGER = ActiveSupport::TaggedLogging.new(Logger::Syslog.new('mygreatapp', Syslog::LOG_LOCAL7))
|
42
42
|
|
43
43
|
=== BSD syslog setup
|
44
44
|
|
data/lib/logger-syslog.rb
CHANGED
@@ -6,7 +6,7 @@ class Logger::Syslog
|
|
6
6
|
include Logger::Severity
|
7
7
|
|
8
8
|
# The version of Logger::Syslog you are using.
|
9
|
-
VERSION = '1.7.
|
9
|
+
VERSION = '1.7.1'
|
10
10
|
|
11
11
|
# From 'man syslog.h':
|
12
12
|
# LOG_EMERG A panic condition was reported to all processes.
|
@@ -125,7 +125,7 @@ class Logger::Syslog
|
|
125
125
|
|
126
126
|
# breakup multiple lines into multiple syslog messages
|
127
127
|
message.each_line do | msg |
|
128
|
-
SYSLOG.log(LEVEL_LOGGER_MAP[severity] | @facility, format_message(format_severity(severity), Time.now, progname, clean(msg
|
128
|
+
SYSLOG.log(LEVEL_LOGGER_MAP[severity] | @facility, format_message(format_severity(severity), Time.now, progname, clean(msg)))
|
129
129
|
end
|
130
130
|
true
|
131
131
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logger-syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 1
|
10
|
+
version: 1.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Cambra; Eric Hodel; Chris Powell; Matthew Boeh; Ian Lesperance; Dana Danger; Brian Smith; Ashley Martens
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-11-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
@@ -43,8 +43,8 @@ extensions: []
|
|
43
43
|
extra_rdoc_files: []
|
44
44
|
|
45
45
|
files:
|
46
|
-
- lib/syslog-formatter.rb
|
47
46
|
- lib/logger-syslog.rb
|
47
|
+
- lib/syslog-formatter.rb
|
48
48
|
- README.rdoc
|
49
49
|
- test/test_syslog_logger.rb
|
50
50
|
homepage: https://github.com/scambra/logger-syslog
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements: []
|
83
83
|
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 1.8.
|
85
|
+
rubygems_version: 1.8.10
|
86
86
|
signing_key:
|
87
87
|
specification_version: 3
|
88
88
|
summary: An improved Logger replacement that logs to syslog. It is almost drop-in with a few caveats.
|