I have a simple JRuby web application running in Tomcat on a Windows
Server 2008R2 system. I’ve been asked to put application logs into
the Windows Application Event Log. Anyone have pointers on how to
accomplish this?
Thanks,
Derek
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Fri, Aug 20, 2010 at 12:59 PM, Derek N.
[email protected] wrote:
I have a simple JRuby web application running in Tomcat on a Windows
Server 2008R2 system. I’ve been asked to put application logs into
the Windows Application Event Log. Anyone have pointers on how to
accomplish this?
I haven’t done it, but it should be possible. You’ll need to use log4j
via slf4j and configure that in JRuby-Rack.
http://www.slf4j.org/faq.html
along with either this in config/warble.rb:
config.webxml.jruby.rack.logging = "slf4j"
or just placing config directly in web.xml:
<context-param>
<param-name>jruby.rack.logging</param-name>
<param-value>slf4j</param-value>
</context-param>
See
http://github.com/nicksieger/jruby-rack/blob/master/src/main/java/org/jruby/rack/logging/RackLoggerFactory.java
for JRuby-Rack background.
Let us know if you’re able to get it going.
/Nick
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email