Rails log lines missing when executing the app in Glassfish GEM

Hello,

Perhaps I missed something or I’m completely out of the game. My problem
is
that my application gives the nice logging lines about called URLs,
execution times etc. only when run with JRuby and Webrick.

Example:
Processing CStockQuotasController#send_me_something (for 127.0.0.1 at
2009-09-23 15:37:52) [GET]
Parameters: {“id”=>“1”}
Completed in 34ms (View: 31, DB: 0) | 200 OK
[http://localhost/c_stock_quotas/send_me_something/1]

Running the same application using the Glassfish GEM sends only some
Glassfish logging to the development.log file. I can’t find that
interesting
pieces of the Rails logger.

So the question is, can I configure the whole thing to show me those
data
from Rails even when run in Glassfish, or is it something which is not
intended?

Thanks in advance for any response.

Andreas


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I think this is just a limitation or missing feature of glassfish that
they don’t copy the log output to the console. It’s a little bit of a
pain, but you could just tail -f development.log after you start the
server…

/Nick

On Thu, Sep 24, 2009 at 12:39 AM, [email protected] wrote:

Completed in 34ms (View: 31, DB: 0) | 200 OK


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Nick, thanks for taking time for a response. However that’s
not the actual problem for me to run that “tail -f …”. I’m fine
with that workaround, but most I can see in the Glassfish output
is some FINE / FINEST lines with lots of information about grizlzy etc.

FINE: OP_READ on sun.nio.ch.SelectionKeyImpl@79b80e60 attachment:
1253597755717
Sep 22, 2009 7:35:55 AM com.sun.grizzly.config.GrizzlyServiceListener
FINEST: flushChannel isAsyncHttpWriteEnabled=false
bb=java.nio.HeapByteBuffer[pos=0 lim=145 cap=131072]
Sep 22, 2009 7:35:55 AM com.sun.grizzly.config.GrizzlyServiceListener

I miss the information of the logs when the application is run
in Webrick or Mongrel which looks like this:

Processing CStockQuotasController#send_me_something (for 127.0.0.1 at
2009-09-23 15:37:52) [GET]
Parameters: {“id”=>“1”}
Completed in 34ms (View: 31, DB: 0) | 200 OK
[http://localhost/c_stock_quotas/send_me_something/1]

Is it possible to get these information in Glassfish, too?

Andreas

Am Donnerstag, 24. September 2009 schrieb Nick S.:

Perhaps I missed something or I’m completely out of the game. My

Andreas


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email