Forum: Ruby logger question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
91e1fb8bd265b7629491ab64c42f0906?d=identicon&s=25 Reid Thompson (Guest)
on 2009-05-15 16:10
(Received via mailing list)
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
6bed507c0085d39447171b95c515a890?d=identicon&s=25 David Palm (Guest)
on 2009-05-15 16:23
(Received via mailing list)
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?
This topic is locked and can not be replied to.