[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

logfile rotate

Derek Smith

4/10/2009 2:46:00 PM

Is there a gem that rolls logs for you? if so how and where can I get
it? I have started to write my own, but figured I'd ask.

thx!
--
Posted via http://www.ruby-....

2 Answers

Tim Pease

4/10/2009 2:56:00 PM

0


On Apr 10, 2009, at 8:46 AM, Derek Smith wrote:

> Is there a gem that rolls logs for you? if so how and where can I get
> it? I have started to write my own, but figured I'd ask.
>

Take a look at the "logging" gem. It has a rolling logfile appender --
rotates logfiles after they get (a) too big or (b) too old. If you are
not generating the logfiles from a Ruby app, then that appender is a
good place to steal code from.

Blessings,
TwP


Jarmo Pertman

4/12/2009 12:42:00 PM

0

There is also a standard Ruby library called Logger which can do that:
http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/...

Derek Smith wrote:
> Is there a gem that rolls logs for you? if so how and where can I get
> it? I have started to write my own, but figured I'd ask.
>
> thx!

--
Posted via http://www.ruby-....