Hey there folks. I would really like to use log4r as my default logger
in Rails, but I’m having a hard time getting it to work. I’m not even
sure I’m plugging it in in the right place. I’m using log4r 1.0.5 and
rails 1.1.1.
I would love it if someone could either point me to a good tutorial on
how to use log4r with rails, or at least point me in the right direction
as far as how to configure/set it up.
me too!! sorry, i don’t have the answer to this question, but today i’ve
been trying to figure out how to use for a client’s project, and i can’t
figure it out either! i thought i was the idiot!
i’m also using 1.0.5 of log4r, as well as rails 1.1.2, and lighttpd
1.4.11.
does anyone out there know how to configure log4r with rails??
thanks peeps.
-mark
Helium Exchange wrote:
Hey there folks. I would really like to use log4r as my default logger
in Rails, but I’m having a hard time getting it to work. I’m not even
sure I’m plugging it in in the right place. I’m using log4r 1.0.5 and
rails 1.1.1.
I would love it if someone could either point me to a good tutorial on
how to use log4r with rails, or at least point me in the right direction
as far as how to configure/set it up.
Any progress on this subject? Also an example of a simple xml
configuration would be welcome. The log4r manual and xml example a
rather poor (with due respect to the maker of log4r himself, as I think
log4r is very promising)
Thanks,
Fino
This is how I got it working:
Assuming Rails and Log4R installed:
In the config directory I have a configuration file called
log4r_config.xml with the following contents:
me too!! sorry, i don’t have the answer to this question, but today i’ve
been trying to figure out how to use for a client’s project, and i can’t
figure it out either! i thought i was the idiot!
i’m also using 1.0.5 of log4r, as well as rails 1.1.2, and lighttpd
1.4.11.
does anyone out there know how to configure log4r with rails??
thanks peeps.
-mark
Helium Exchange wrote:
Hey there folks. I would really like to use log4r as my default logger
in Rails, but I’m having a hard time getting it to work. I’m not even
sure I’m plugging it in in the right place. I’m using log4r 1.0.5 and
rails 1.1.1.
I would love it if someone could either point me to a good tutorial on
how to use log4r with rails, or at least point me in the right direction
as far as how to configure/set it up.
Thanks a lot!
Any progress on this subject? Also an example of a simple xml
configuration would be welcome. The log4r manual and xml example a
rather poor (with due respect to the maker of log4r himself, as I think
log4r is very promising)
Thanks,
Fino
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.