[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

logger question

Reid Thompson

5/15/2009 2:10:00 PM

Without modifying the file logger.rb, is there a way to add a log
severity level? For instance, I have a group of counters that I want to
output at the end of a script run with a log level of REPORT ala

R, [2009-05-15T10:00:59.988975 #1422] RPT -- : counter output message

1 Answer

David Palm

5/15/2009 2:23:00 PM

0

On Fri, 15 May 2009 23:10:06 +0900, Reid Thompson wrote:
> Without modifying the file logger.rb, is there a way to add a log
> severity level? For instance, I have a group of counters that I want to
> output at the end of a script run with a log level of REPORT ala
>
> R, [2009-05-15T10:00:59.988975 #1422] RPT -- : counter output message
>

I am pretty sure you'd have to at least subclass Logger to achieve that. :/

Try out the logging gem perhaps?