Hello All,
I am top-posting this in hopes of increasing the visibility.
This ticket has not been touched : Default Logger instance has no formatting
<http://dev.rubyonrails.org/ticket/3144>
For my installation, this is a BIG problem in my production logging !!
For now the workaround below is working, and the double-declaration warnings
of loading ''logger.rb'' twice are very annoying in development
and testing.
Does anyone else experience this problem and/or have interest in
investigating the source?
Thank you all!!
--
------------------------------
Joyeux Noël
------------------------------
Peter Fitzgibbons
On 12/5/05, Peter Fitzgibbons
<peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hello all,
> This solution works for my missing log formatting in Rails 0.14.3...
> Is there a bug or some overloading code that is breaking the Ruby logger
> within Rails 1.0 rc3?
>
> My versions :
> C:\ruby\dev\buildview>rails -v
> Rails 0.14.3
>
> C:\ruby\dev\buildview>ruby -v
> ruby 1.8.2 (2004-12-25) [i386-mswin32]
>
>
>
> ---------- Forwarded message ----------
> From: NAKAMURA, Hiroshi
<nakahiro-FMf0BjczJVvqq2nvvmkE/A@public.gmane.org>
> Date: Nov 14, 2005 5:46 AM
> Subject: Re: Using logger
> To: ruby-talk ML < ruby-talk-X+L+6nJQZ58h9ZMKESR00Q@public.gmane.org
>
> Cc: listrecv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Ara.T.Howard wrote:
> >> Hi. I''m trying to use Ruby''s built in logger to
show messages with the
>
> >> severity and timestamp, but I''m just getting the message
string, (no
> >> severity or timestamp).
>
> > which ruby version? this certainly works for me:
>
> It should be ruby-1.8.2 or earlier. Logger#formatter= is from ruby-1.8.3.
>
> Unfortunately some library/application ruins original logger.rb.
> Adding the following line may recover the original logger.rb definition
> (with some warnings).
>
> load "logger.rb"
>
> Regards,
> // NaHi
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Cygwin)
>
> iD8DBQFDeHj6f6b33ts2dPkRAg7yAJ97Zsd+mhYacOioWU52e/LdhFsZQwCcCGJI
> n/PJY4kT6tJ8/h805Qlis64> =fxOa
> -----END PGP SIGNATURE-----
>
>
>
> --
> ------------------------------
> Joyeux Noël
> ------------------------------
> Peter Fitzgibbons
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails