Displaying 1 result from an estimated 1 matches for "l4r".
Did you mean:
l4
2006 May 21
0
Re: log4r and rails
...hat said, a basic setup to use log4r in rails follows a very similar
approach to using the built in logger.
Install the log4r gem
gem install log4r
Then edit your environment.rb file to use the gem and setup the logger
require "rubygems"
require "log4r"
#Setup Log4r Logging
L4R = Log4r::Logger.new("RailsLogging")
Log4r::FileOutputter.new(''logfile'',
:filename=>"#{RAILS_ROOT}/log/log4r.log",
:trunc=>false,
:level=>Log4r::DEBUG)
L4R.add(''logfil...