-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: INFO log level
PostPosted: Fri Sep 10, 2004 1:21 am 
Newbie

Joined: Sat Aug 14, 2004 6:44 am
Posts: 17
Location: Auckland, NZ
I guess its handy during development to have elevated log levels:-

Code:
16:43:20,062 INFO  [HibernateContextHelper] Generating Hibernate session for scoped bind [java:/hibernate/SessionFactory]
16:43:20,062 INFO  [HibernateContextHelper] Unbinding Hibernate session from scoped bind [java:/hibernate/SessionFactory]


Perhaps this development is far enough along to not require this now ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 1:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Perhaps those really should just be DEBUG level messages. I'll go back and reconsider all that b4 calling this stuff *done*. Not sure though. My definition of INFO is "interesting event", for which I think binding/unbinding, session-creation/close still qualify.

I think the default log level in jboss for its internal stuff is INFO for the log-file and WARN for the console. Is that not correct?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 1:44 pm 
Beginner
Beginner

Joined: Mon Aug 16, 2004 6:09 am
Posts: 46
Location: Geneva, Switzerland
steve wrote:
I think the default log level in jboss for its internal stuff is INFO for the log-file and WARN for the console. Is that not correct?


Not precisely. from log4j.xml:
Code:
   <!-- ============================== -->
   <!-- Append messages to the console -->
   <!-- ============================== -->

   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
      <param name="Target" value="System.out"/>
      <param name="Threshold" value="INFO"/>



Binding/unbinding stuff seems very routine and not interesting (since it works properly ;)

I'd also vote for DEBUG.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 12, 2004 12:39 am 
Newbie

Joined: Sat Aug 14, 2004 6:44 am
Posts: 17
Location: Auckland, NZ
Its debug. Specifically its debug because of the sheer volume of them. Info is used for deployments/undeployments as they are the interesting events. Every EJB invocation is hopefully uninteresting.

Possibly some of the logging could use the trace level used within JBoss. Also, all the debug/trace logging should be updated to use the isDebugEnabled as per standard practice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 13, 2004 10:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
isDebugEnabled is really only used/needed if the message to be logged is expensive to generate; the pivot being the expense of performing the isDebugEnabled check vs the message construction. Most of these messages are simple string logging.

Anyway, like I said before, when this is all complete I will go back and evaluate the logging.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.