Logging with log4j on tomcat jruby-rack for a Rails 3 application

后端 未结 2 377
一整个雨季
一整个雨季 2020-12-31 20:34

I just spent the better part of 3 hours trying to get my Rails application logging with Log4j. I\'ve finally got it working, but I\'m not sure if what I did is correct. I tr

2条回答
  •  天命终不由人
    2020-12-31 20:56

    We also did various experiments and finally settled with slf4j option. Coming from Java background we knew slf4j, so we didn't go further.

    
       jruby.rack.logging
       slf4j
     
    

    btw, there is no need to copy slf4j-simple-1.6.1.jar into tomcat/lib or WEB-INF/lib when using slf4j-log4jxxx.jar

提交回复
热议问题