syslog-ml-logger 1.8.3 → 1.8.4
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 +8 -6
- data/lib/syslog-ml-logger.rb +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -18,11 +18,13 @@ 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.
|
22
|
-
Version 1.8.
|
23
|
-
Version 1.8.
|
24
|
-
Version 1.
|
25
|
-
Version 1.
|
21
|
+
Version 1.8.4 Rails3 compatibility
|
22
|
+
Version 1.8.3 Fixes crash when anything else but a string was wrtten to log.
|
23
|
+
Version 1.8.2 Quick fix.
|
24
|
+
Version 1.8.1 Fixed missing last character thanks to fork of scambra and undefined method each-line when message isn't an array.
|
25
|
+
Version 1.8.0 Cuts lines longer then 1024 characters in multiple lines cause syslog cuts them off.
|
26
|
+
Version 1.7.3 Sends multiple lines to the syslog server instead of one large line which is cut of.
|
27
|
+
Version 1.6.7 Takes a formatter as logger does and uses call to format the message.
|
26
28
|
|
27
29
|
== SYNOPSIS:
|
28
30
|
|
@@ -100,7 +102,7 @@ syslogd(8) manpage for further details.
|
|
100
102
|
== LICENSE:
|
101
103
|
|
102
104
|
Extending below with:
|
103
|
-
Copyright (c)
|
105
|
+
Copyright (c) 2013, Daniel van den Oord
|
104
106
|
|
105
107
|
Copyright (c) 2008, 2009 Eric Hodel, Christopher Powell, Ian Lesperance,
|
106
108
|
Dana Contreras, Brian Smith, Ashley Martens
|
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.4'
|
10
10
|
|
11
11
|
# Max length of syslog string
|
12
12
|
MAXLENGTH = 1024
|
@@ -122,7 +122,7 @@ class Logger::Syslog
|
|
122
122
|
end
|
123
123
|
|
124
124
|
# breakup multiple lines into multiple syslog messages
|
125
|
-
message.to_s.
|
125
|
+
message.to_s.each_line do | line |
|
126
126
|
cut(line).each do |msg|
|
127
127
|
SYSLOG.send(LEVEL_LOGGER_MAP[severity], format_message(format_severity(severity), Time.now, progname, clean(msg)))
|
128
128
|
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: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 4
|
10
|
+
version: 1.8.4
|
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
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-01-15 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: An improved Logger replacement that logs multiple-lines to syslog. It is almost drop-in with a few caveats.
|