-
1. Re: Logging - How to change from FINE to DEBUG
ataylor Sep 14, 2009 6:13 AM (in response to rnicholson10)HornetQ uses JDK logging so you will need edit the logging.properties file being used as well
-
2. Re: Logging - How to change from FINE to DEBUG
rnicholson10 Sep 14, 2009 6:46 AM (in response to rnicholson10)Where would I happen to find this properties file?
There are a few in the HornetQ install dir, and some in the jre dir but how do I tell which one is being used?
Or is it called something else within jboss? -
3. Re: Logging - How to change from FINE to DEBUG
timfox Sep 14, 2009 6:49 AM (in response to rnicholson10)There is a chapter on logging in the user manual, which should be of some use:
http://hornetq.sourceforge.net/docs/hornetq-2.0.0.BETA5/user-manual/en/html/logging.html -
4. Re: Logging - How to change from FINE to DEBUG
rnicholson10 Sep 14, 2009 7:05 AM (in response to rnicholson10)Yes, that's where I began my search. If I open $HORNETQ_HOME/config/stand-alone/non-clustered/logging.properties (I'm using default-with-hornetq profile in JBoss) the logging level is set to INFO. So why do I get FINE messages displayed in the JBoss logger?
I've checked every logging.properties file on my system and nothing points to the FINE logging level. -
5. Re: Logging - How to change from FINE to DEBUG
rnicholson10 Sep 16, 2009 10:01 AM (in response to rnicholson10)Does anyone have any ideas how to proceed with this?
Is it possible that the FINE level of debugging is hardcoded internally?
The reason I ask is that my log is filling up with memory status logging which I don't require.2009-09-16 14:53:48,426 FINE [org.hornetq.core.server.impl.MemoryManagerImpl] (Thread-6) free memory: 138.57 MiB max memory: 455.13 MiB total memory: 373.38 MiB available memory: 48.41%
The following command yields 0 result when run on the root of my system:find . -name *.properties -exec grep -H FINE {} \;
-
6. Re: Logging - How to change from FINE to DEBUG
jaikiran Sep 16, 2009 10:49 AM (in response to rnicholson10)"rnicholson10" wrote:
I tried to add the following limit to the jboss-log4j.xml but I still seem to get FINE output from HornetQ:<category name="org.hornetq"> <priority value="DEBUG"/> </category>
JDK logging level "FINE" equates to JBoss/log4j log level "DEBUG" http://www.jboss.org/community/wiki/UsageOfLoggingLevels. So with that above setting you have effectively enabled FINE level logging for org.hornetq package. You probably want to set it to:<category name="org.hornetq.core.server.impl.MemoryManagerImpl"> <priority value="INFO"/> </category>
-
7. Re: Logging - How to change from FINE to DEBUG
rnicholson10 Sep 16, 2009 11:43 AM (in response to rnicholson10)Thanks a million!!!
That was driving me nuts! -
8. Re: Logging - How to change from FINE to DEBUG
timfox Sep 16, 2009 11:46 AM (in response to rnicholson10)I'll add a note in the user manual about this
-
9. Re: Logging - How to change from FINE to DEBUG
jaikiran Sep 16, 2009 11:48 AM (in response to rnicholson10)On a related note, IMO those specific log messages are probably better logged at FINER or FINEST JDK logging level. Unless ofcourse the available memory falls below some threshold for which the logging level could probably be WARNING.
-
10. Re: Logging - How to change from FINE to DEBUG
timfox Sep 16, 2009 11:53 AM (in response to rnicholson10)btw there's a switch to turn off the memory logging on the server if you don't want it
-
11. Re: Logging - How to change from FINE to DEBUG
timfox Sep 16, 2009 11:59 AM (in response to rnicholson10)"timfox" wrote:
btw there's a switch to turn off the memory logging on the server if you don't want it
Actually ignore that, I lied ;)
The memory logging is done at DEBUG level in the code, so Jaikiram suggestion is good -
12. Re: Logging - How to change from FINE to DEBUG
jmesnil Sep 16, 2009 12:05 PM (in response to rnicholson10)I'll add parameters to configure the %age threshold and the measure interval so that users can adapt them to their env