public
Rubygem
Description: DataMapper - Core
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-core.git
Small doc fixes for set_log
djwonk (author)
Fri Jul 25 15:31:01 -0700 2008
commit  81ae01327ebc99a6cde60360a2ebb2606982d0ab
tree    e6fd7199b59e335523629f68c697f100527f1adb
parent  3dc0daae69b1ec7aca77b8dd37aeab29c30c200b
...
4
5
6
7
 
8
9
10
 
 
11
12
13
...
25
26
27
28
 
29
30
31
...
147
148
149
150
151
 
152
153
154
...
4
5
6
 
7
8
 
 
9
10
11
12
13
...
25
26
27
 
28
29
30
31
...
147
148
149
 
 
150
151
152
153
0
@@ -4,10 +4,10 @@ require "time" # httpdate
0
 # Logger taken from Merb :)
0
 #
0
 # To replace an existing logger with a new one:
0
-# DataMapper::Logger.set_log(log{String, IO},level{Symbol, String})
0
+# DataMapper.logger.set_log(log{String, IO},level{Symbol, String})
0
 #
0
-# Available logging levels are
0
-# DataMapper::Logger::{ Fatal, Error, Warn, Info, Debug }
0
+# Available logging levels are:
0
+# :off, :fatal, :error, :warn, :info, :debug
0
 #
0
 # Logging via:
0
 # DataMapper.logger.fatal(message<String>)
0
@@ -25,7 +25,7 @@ require "time" # httpdate
0
 # ==== Private DataMapper Logger API
0
 #
0
 # To initialize the logger you create a new object, proxies to set_log.
0
-# DataMapper::Logger.new(log{String, IO},level{Symbol, String})
0
+# DataMapper::Logger.new(log{String, IO}, level{Symbol, String})
0
 #
0
 # Logger will not create the file until something is actually logged
0
 # This avoids file creation on DataMapper init when it creates the
0
@@ -147,8 +147,7 @@ module DataMapper
0
     end
0
 
0
     # To replace an existing logger with a new one:
0
- # DataMapper::Logger.set_log(log{String, IO},level{Symbol, String})
0
- #
0
+ # DataMapper.logger.set_log(log{String, IO},level{Symbol, String})
0
     #
0
     # @param log<IO,String> either an IO object or a name of a logfile.
0
     # @param log_level<Symbol> a symbol representing the log level from

Comments

    No one has commented yet.