Hi! On Mon, Oct 08, 2007 at 09:07:49AM -0500, Nick Sieger wrote: [..] > We're doing something much like this in our applications to have all > Rails logger output go to Glassfish's log files. Just make sure this > gets loaded during the initialization sequence (in environment.rb or a > plugin init.rb). > > http://pastie.caboo.se/104897
Cool, that led me into the right direction. I ended up doing something very similar, but I overwrote the Loggers add method with a custom one that logs to a Log4j logger which has been put into the servlet context by a ServletContextListener. The category this logger uses can be configured via a context parameter in web.xml. That way the log level can be set in the log4j config of the container (JBoss in my case) without having to touch the war file. It's available as a plugin at https://projects.jkraemer.net/svn/plugins/jruby/log4j_logger/ just in case anyone's interested. Cheers, Jens -- Jens Krämer http://www.jkraemer.net/ - Blog http://www.omdb.org/ - The new free film database _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
