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 2010-08-20 19:59
on 2010-08-20 21:32
On Fri, Aug 20, 2010 at 12:59 PM, Derek Neptune <derek.neptune@gmail.com> 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://stackoverflow.com/questions/164879/how-to-write-from-java-to-the-windows-event-log 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
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.