-
1. Which logger comes before the root logger?
wdfink Mar 16, 2011 6:44 AM (in response to henk53)The static initializer might not a good idea IMHO.
I think in this case the static initializing is done before the log4j configuration is loaded
So your change of logging.xml is not yer active.
Maybe you can set '-Dlog4j.configuration=file:/...JBOSS/server/.../deploy/jboss-logging.xml' with the java options before starting jboss.
In think in this case log4j will pick up the configuration earlier.
-
2. Which logger comes before the root logger?
henk53 Mar 16, 2011 3:31 PM (in response to wdfink)Maybe you can set '-Dlog4j.configuration=file:/...JBOSS/server/.../deploy/jboss-logging.xml' with the java options before starting jboss.
In think in this case log4j will pick up the configuration earlier.
Thanks for the tip, but unfortunately it did not help
-
3. Which logger comes before the root logger?
jaikiran Mar 17, 2011 12:03 AM (in response to henk53)(Unfortunately) it's controlled by the boot logging properties. See this http://community.jboss.org/wiki/JBossBootLogging
-
4. Which logger comes before the root logger?
jaikiran Mar 17, 2011 12:04 AM (in response to wdfink)And yeah, that boolean variable to keep track of the logging level isn't really a good idea. Any dynamic changes to the logging levels will not be taken into account.
-
5. Which logger comes before the root logger?
wdfink Mar 17, 2011 12:56 PM (in response to jaikiran)Hi Jaikiran,
is it a reason for a JIRA or will it be fixed anyhow?
-
6. Re: Which logger comes before the root logger?
jaikiran Mar 18, 2011 12:37 AM (in response to wdfink)Wolf-Dieter Fink wrote:
Hi Jaikiran,
is it a reason for a JIRA or will it be fixed anyhow?
You mean, for the boolean variable keeping track of logging level? I think yes, it does make sense to create a JIRA. Since it's in HornetQ codebase, the JIRA needs to be created here https://issues.jboss.org/browse/HORNETQ. My guess is that this pattern of keeping track of logging level in a boolean variable isn't just limited to that class but maybe other classes in that codebase too. So I am not too sure if it's going to be a one line fix. But yeah, opening a JIRA would be good.
If however, you are talking about the JIRA for the boot logging properties staying too late during the AS startup, then there's already a JIRA here https://issues.jboss.org/browse/JBAS-8044
-
7. Re: Which logger comes before the root logger?
wdfink Mar 18, 2011 9:28 AM (in response to jaikiran)I create https://issues.jboss.org/browse/HORNETQ-655 for the static log-level.