logging 0.5.2 → 0.5.3
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/History.txt +4 -0
- data/README.txt +2 -1
- data/lib/logging.rb +2 -2
- data/lib/logging/appenders/growl.rb +3 -2
- metadata +2 -2
data/History.txt
CHANGED
data/README.txt
CHANGED
|
@@ -29,7 +29,8 @@ logged.
|
|
|
29
29
|
logger.debug "this debug message will not be output by the logger"
|
|
30
30
|
logger.warn "this is your last warning"
|
|
31
31
|
|
|
32
|
-
In this example, a single logger is crated that will append to STDOUT and to a
|
|
32
|
+
In this example, a single logger is crated that will append to STDOUT and to a
|
|
33
|
+
file. Only log messages that are informational or higher will be logged.
|
|
33
34
|
|
|
34
35
|
reqruie 'logging'
|
|
35
36
|
|
data/lib/logging.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# $Id: logging.rb
|
|
1
|
+
# $Id: logging.rb 58 2007-12-05 20:32:54Z tim_pease $
|
|
2
2
|
|
|
3
3
|
require 'logging/repository'
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ require 'logging/config/yaml_configurator'
|
|
|
22
22
|
#
|
|
23
23
|
module Logging
|
|
24
24
|
|
|
25
|
-
VERSION = '0.5.
|
|
25
|
+
VERSION = '0.5.3' # :nodoc:
|
|
26
26
|
|
|
27
27
|
LEVELS = {} # :nodoc:
|
|
28
28
|
LNAMES = {} # :nodoc:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# $Id: growl.rb
|
|
1
|
+
# $Id: growl.rb 59 2007-12-08 23:35:14Z tim_pease $
|
|
2
2
|
|
|
3
3
|
require 'logging/appender'
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ module Appenders
|
|
|
22
22
|
def initialize( name, opts = {} )
|
|
23
23
|
super
|
|
24
24
|
|
|
25
|
-
@growl = "growlnotify -w -n
|
|
25
|
+
@growl = "growlnotify -w -n \"#{@name}\" -t \"%s\" -m \"%s\" -p %d &"
|
|
26
26
|
|
|
27
27
|
getopt = ::Logging.options(opts)
|
|
28
28
|
@coalesce = getopt[:coalesce, false]
|
|
@@ -144,6 +144,7 @@ module Appenders
|
|
|
144
144
|
# _priority_.
|
|
145
145
|
#
|
|
146
146
|
def growl( title, message, priority )
|
|
147
|
+
message.tr!("`", "'")
|
|
147
148
|
if @coalesce then coalesce(title, message, priority)
|
|
148
149
|
else system @growl % [title, message, priority] end
|
|
149
150
|
end
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: logging
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.5.
|
|
7
|
-
date: 2007-
|
|
6
|
+
version: 0.5.3
|
|
7
|
+
date: 2007-12-08 00:00:00 -07:00
|
|
8
8
|
summary: A flexible and extendable logging library for Ruby
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|