syslog-ml-logger 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/syslog-ml-logger.rb +4 -8
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -18,6 +18,7 @@ will be ignored.
|
|
18
18
|
This particular Logger::Syslog improves the original by correctly mapping Rails log severities to
|
19
19
|
the Syslog counterparts. It also adds the ability to select a syslog facility other than "user."
|
20
20
|
|
21
|
+
Version 1.8.2 quick fix
|
21
22
|
Version 1.8.1 fixed missing last character thanks to fork of scambra and undefined method each-line when message isn't an array.
|
22
23
|
Version 1.8.0 cuts lines longer then 1024 characters in multiple lines cause syslog cuts them off.
|
23
24
|
Version 1.7.3 sends multiple lines to the syslog server instead of one large line which is cut of.
|
data/lib/syslog-ml-logger.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.8.
|
9
|
+
VERSION = '1.8.2'
|
10
10
|
|
11
11
|
# Max length of syslog string
|
12
12
|
MAXLENGTH = 1024
|
@@ -122,14 +122,10 @@ class Logger::Syslog
|
|
122
122
|
end
|
123
123
|
|
124
124
|
# breakup multiple lines into multiple syslog messages
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
SYSLOG.send(LEVEL_LOGGER_MAP[severity], format_message(format_severity(severity), Time.now, progname, clean(msg)))
|
129
|
-
end
|
125
|
+
message.each do | line |
|
126
|
+
cut(line).each do |msg|
|
127
|
+
SYSLOG.send(LEVEL_LOGGER_MAP[severity], format_message(format_severity(severity), Time.now, progname, clean(msg)))
|
130
128
|
end
|
131
|
-
rescue
|
132
|
-
SYSLOG.send(LEVEL_LOGGER_MAP[severity], format_message(format_severity(severity), Time.now, progname, clean(message)))
|
133
129
|
end
|
134
130
|
true
|
135
131
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syslog-ml-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 2
|
10
|
+
version: 1.8.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel van den Oord;Erwin Rohde,Eric Hodel; Chris Powell; Matthew Boeh; Ian Lesperance; Dana Danger; Brian Smith; Ashley Martens
|