search for: log4r_config

Displaying 3 results from an estimated 3 matches for "log4r_config".

2006 Jul 12
2
Initializing log4r once
I have a problem init''ing log4r. I have the following initialization code for log4r: Configurator[''logpath''] = ''./config'' # was ''./logs'' Configurator.load_xml_file(''config/log4r_config.xml'') I put it in appliction.rb, but then ofcourse at every request the logger system will be reinitialized. This causes the logfiles to be cleared at each request. which is not very usefull. Does anyone have an idea as how to init log4r once, at the beginning of the application run? H...
2006 Apr 07
3
log4r and rails
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
2006 Apr 11
2
using log4r and rails
hey everyone. i know somebody else had started a thread on this subject, but since no one seems to be answering that thread i thought i would start one of my one. i''m doing a project for a client and we need some seriously verbose logging. it looks like log4r can do what i need, but i can''t for the life of me figure out how to plug it into rails. everywhere talks about how