[Nitro] Logger

Mark Probert probertm at acm.org
Thu Aug 25 19:03:22 EDT 2005


Hi ..

Following the recent thread in c.l.r, I did a quick modification of the
Glue Logger class to get around the issue (I need my own Logger).  Here
is the diff (0.22.0 release):

-----------------------< glue/logger.rb >-----
10c10
< class Logger
---
> class GlueLogger < Logger
80c80
<   @@global_logger = Logger.new(STDERR)
---
>   @@global_logger = GlueLogger.new(STDERR)
86,87c86,87
<       @@global_logger = Logger.new(logger)
<     elsif logger.is_a?(Logger)
---
>       @@global_logger = GlueLogger.new(logger)
>     elsif logger.is_a?(GlueLogger)
150c150
<   remove_const "Format"
---
>   # remove_const "Format"
-----------------------< glue/logger.rb >-----

This also means that there are also changes in the Og code.
Specifically, a global replace of 'GlueLogger' for 'Logger' in the
following files:

 og/manager.rb
 og/store.rb
 og/store/filesys.rb
 og/store/memory.rb      
 og/store/psql.rb        
 og/store/sqlite.rb
 og/store/kirby.rb       
 og/store/mysql.rb       
 og/store/sql.rb        
 og/store/sqlserver.rb

Given that these are trivial edits, I haven't given the diffs but I can
on request.

Thanks for the great tool!

Regards,

-- 
-mark.  (probertm at acm dot org)




More information about the Nitro-general mailing list