0

I am a newbie to Ruby On Rails and i am struck with configuring logging for the application which i am developing

I followed the steps answered in this question a link

In my log directory, the log file gets created. But nothing gets written to the log file.

I am using ruby 2.0.0 p0. How to debug and fix this? I am struck on this for a day.

Community
  • 1
  • 1
Anirudhan J
  • 2,072
  • 6
  • 27
  • 45

1 Answers1

0

Got it fixed. I was having Rails.logger = Log4r::Logger.new("Application Log") in my environment.rb file.

Once i removed it, logging worked fine.

Anirudhan J
  • 2,072
  • 6
  • 27
  • 45