On Mon, Oct 08, 2007 at 09:17:25AM +1300, Robert Egglestone wrote: > Hey Jens, > > A log4r logger that connects up to a Java logger would be very useful > for keeping all the logs together.
Yep. I wonder if it would be possible to just use log4j's static Logger.getLogger method to get hold of that central logger instance, and then build a log4r compatibility layer around it. After all, the different JRuby runtimes share the same JVM. Another way would be to extend RailsServlet to inject a handle to the logger into the runtime object as it does with $servlet_context. > Setting the servlet to load on startup can be done in the web.xml: > > <servlet> > <servlet-name>test</servlet-name> > <servlet-class>nz.ac.auckland.ec.TestServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> cool, thanks :-) 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
