Weblogic - log files

Hi,

I have a JRuby/Ruby on Rails application deployed to a WebLogic server.

I am currently puzzled about is how to setup the logging of the Rails
application.

I can’t figure out where the stuff goes which usually in a Rails
application would end up in the ‘log/development.log’ file.

How do I have to configure the WebLogic server and/or the Rails
application so I can write the logged data to a file that I can look
into.

Sorry if this is a stupid question.

Thanks in advance for any hints and advice.

With Regards

Jack

Hi,

On Tue, Oct 5, 2010 at 8:31 AM, Heiner B. [email protected]
wrote:

How do I have to configure the WebLogic server and/or the Rails
application so I can write the logged data to a file that I can look
into.

If you’re using JRuby-Rack (which is usually what you use for war file
deployments), the logging is supposed to be set up to use
javax.servlet.ServletContext#log which should send logging to the
server log file.

You can also put a context init parameter `jruby.rack.logging’ in
web.xml that will send the logging elsewhere. See the logging section
I just added in the README at http://github.com/nicksieger/jruby-rack.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs