public
Rubygem
Description: A lightweight and flexible website management system.
Homepage: http://webby.rubyforge.org/
Clone URL: git://github.com/TwP/webby.git
updated to use latest logging gem
TwP (author)
Tue Feb 12 16:39:03 -0800 2008
commit  ba21cb618dfe1a1159baf8922e3586f53f085079
tree    750ac986b27146c3aaae5bd5b01154794aafe6a2
parent  9a8c045addee0e4ec2887024d44377276ed135eb
...
32
33
34
35
 
36
37
38
...
32
33
34
 
35
36
37
38
0
@@ -32,7 +32,7 @@ PROJ.spec_opts << '--color'
0
 depend_on 'directory_watcher'
0
 depend_on 'heel'
0
 depend_on 'hpricot'
0
-depend_on 'logging', '0.6.1'
0
+depend_on 'logging', '0.7.0'
0
 depend_on 'rake'
0
 depend_on 'rspec'
0
 depend_on 'RedCloth'
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@
0
 
0
 desc 'send log events to Growl (Mac OS X only)'
0
 task :growl do
0
- Logging::Logger['Webby'].add(Logging::Appenders::Growl.new(
0
+ Logging::Logger['Webby'].add_appenders(Logging::Appenders::Growl.new(
0
     "Webby",
0
     :layout => Logging::Layouts::Pattern.new(:pattern => "%5l - Webby\000%m"),
0
     :coalesce => true,
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 
0
 desc 'send log events to Growl (Mac OS X only)'
0
 task :growl do
0
- Logging::Logger['Webby'].add(Logging::Appenders::Growl.new(
0
+ Logging::Logger['Webby'].add_appenders(Logging::Appenders::Growl.new(
0
     "Webby",
0
     :layout => Logging::Layouts::Pattern.new(:pattern => "%5l - Webby\000%m"),
0
     :coalesce => true,
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ require 'date'
0
 
0
 # Configure Webby to log to STDOUT at the 'info' level
0
 Logging::Logger['Webby'].level = :info
0
-Logging::Logger['Webby'].add(Logging::Appender.stdout)
0
+Logging::Logger['Webby'].add_appenders(Logging::Appender.stdout)
0
 Logging::Appender.stdout.layout = Logging::Layouts::Pattern.new(
0
     :pattern => "[%d] %5l: %m\n", # [date] LEVEL: message
0
     :date_pattern => "%H:%M:%S" # date == HH:MM:SS

Comments

    No one has commented yet.