Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Logger in ruby
Vetrivel Vetrivel
2/24/2009 8:03:00 AM
Logger class in ruby.
Syntax of creating logger
Logger.new(logdev, shift_age = 0, shift_size = 1048576)
Description
logdev: The log device. This is a filename (String) or IO object
(typically STDOUT, STDERR, or an open file).
shift_age: Number of old log files to keep, or frequency of rotation
(daily, weekly or monthly).
shift_size: Maximum logfile size (only applies when shift_age is a
number
My question
In shift_age field we can specify the number of old log files
to keep, but i have to keep all the files.Is it possible in Logger? How?
--
Posted via
http://www.ruby-...
.
2 Answers
Brian Candler
2/24/2009 9:28:00 AM
0
Vetrivel Vetrivel wrote:
> My question
> In shift_age field we can specify the number of old log files
> to keep, but i have to keep all the files.Is it possible in Logger? How?
I suggest you look at the source code. It's probably installed in
/usr/lib/ruby/1.8/logger.rb or somewhere similar on your system.
--
Posted via
http://www.ruby-...
.
Lurker2006@gmail.com Ann
2/24/2009 9:43:00 AM
0
Hi,there are many computer ebooks free download.
www.51cnnet.net
such as:c++,csharp,adobe,ajax,asp.net,head-first,java,linux,my
sql,oracle,perl,ruby,rails,python,acess,visual basic
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Logger in ruby
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password