On Fri, 24 Nov 2006, Brad Tilley wrote:

> Is there a way to make logger not write the header line (first line) of a log
> file? I'd rather it not write anything but log entries.
>
> # Logfile created on Thu Nov 23 14:44:09 -0500 2006 by logger.rb/1.5.2.9
> log_entry
> log_entry
> log_entry
> ...
>
> Thanks,
> Brad


   harp:~ > cat a.rb
   require 'logger'

   class Logger
     def add_log_header(*a, &b) 42 end
   end

   logger = Logger.new STDERR

   logger.warn{ "but it's a hack" }


   harp:~ > ruby a.rb
   W, [2006-11-23T16:41:37.197345 #24482]  WARN -- : but it's a hack


open classes - wouldn't trade them for anything!

kind regards.

-a
-- 
my religion is very simple.  my religion is kindness. -- the dalai lama