How to turn of message logs when using Rack

I have a Rails application that is packaged as WAR using warbler
0.9.9(Rack)
and when deployed it works fine but I see lots of logs, such as:

[#|2008-05-29T23:55:07.144-0700|INFO|sun-appserver9.1|
javax.enterprise.system.co
ntainer.web|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-4;|PWC1412:
WebMod
ule[/cookbook] ServletContext.log():

Processing RecipesController#show (for 127.0.0.1 at 2008-05-29 23:55:07)
[GET]
Session ID: 61b155a6f37ea32f812e6da9eca4819b
Parameters: {“controller”=>“recipes”, “action”=>“show”, “id”=>“714”}
Rendering template within layouts/application
Rendering recipes/show
Completed in 0.02013 (49 reqs/sec) | Rendering: 0.00884 (43%) | DB:
0.00000
(0%)
| 200 OK [http://localhost/cookbook/recipes/714]
|#]

how can I turn it off?

-vivek.

I’m just getting started with JRuby on Rails. It’s great. Small
question, I’m wondering if Warbler can be configured to deposit the .war
file in a custom location. Specifically, I’m thinking of Glassfish’s
autodeploy directory. Not a big deal, just curious.

Jeremy


Jeremy R.
Application Developer
Institutional, Collaborative, and Academic Technologies
IT Services
Simon Fraser University
Burnaby, BC, Canada V5A 1S6

Email: [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Vivek,

I thought that these are rails logs.
I turn them off just setting the following in config/environment.rb:

config.log_level = :error

(I’m sure there are more clever ways to do that rather than setting
the global logging level, but
that’s good enough for me). :slight_smile:

Thanks,
–Vladimir

On Fri, May 30, 2008 at 7:07 PM, Vivek P. [email protected]
wrote:

Session ID: 61b155a6f37ea32f812e6da9eca4819b

-vivek.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Commit coming shortly.

That’s a good news !

I used to do that with editing “config.war_name” in warble.rb, giving it
a full-path-to-GlassFish’s-autodeploy-directory… :slight_smile:

Kana

[email protected]

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Kana


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, May 30, 2008 at 10:36 AM, Jeremy R.
[email protected] wrote:

I’m just getting started with JRuby on Rails. It’s great. Small question, I’m wondering if Warbler can be configured to deposit the .war file in a custom location. Specifically, I’m thinking of Glassfish’s autodeploy directory. Not a big deal, just curious.

Great idea! I’m ashamed I didn’t think of it, and I thank you for
mentioning it. Commit coming shortly.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

You don’t see them because they’re going into log/development.log or
similar.

/Nick

On Mon, Jun 2, 2008 at 9:36 AM, Vivek P. [email protected]
wrote:

–Vladimir

ntainer.web|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-4;|PWC1412:
0.00000


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks this works! Looks like Rack is setting the log level to debug or
something because by default I dont see these log messages when I am not
using Rack.

-vivek.

On Fri, May 30, 2008 at 11:40 AM, Vladimir S. [email protected]