-
1. Re: JBOSS 5.1 and jboss-log4j.xml
wdfink Feb 3, 2012 2:17 AM (in response to dinocsc)Simple test is to change the appender CONSOLE from target to file (as FILE is) and write to a separate file. If this will work and you 'normal' configuration not you should check the appender configuration.
-
2. Re: JBOSS 5.1 and jboss-log4j.xml
dinocsc Feb 3, 2012 9:50 AM (in response to wdfink)We tried your suggestion but we got message that "File" is not valid for console appender. What is interesting is that one time without making any changes to the xml file, we saw messages going to console and to the server.log. We did a restart of JBOSS and then nothing was shown on the console display and therefore nothing went to server.log
It seems we have an issue with the console appender not sending messages to console.
Any idea?
-
3. Re: JBOSS 5.1 and jboss-log4j.xml
peterj Feb 3, 2012 10:22 AM (in response to dinocsc)Sorry for the edits on this post, but after rereading everything, I think that you need to post your jboss-logj4.xml file because we need to see what you did so that we can tell you how to correct it.
-
4. Re: JBOSS 5.1 and jboss-log4j.xml
wdfink Feb 3, 2012 10:23 AM (in response to dinocsc)Sorry, a bit unclear. What I meant is that you remove the appender CONSOLE and replace it by a copy of the FILE appender and rename the filename (i.e. console.log) and the appender name = CONSOLE.
The CONSOLE appender set a threshold INFO (no messages with more detail as INFO are logged to console)
In general, the CONSOLE and FILE appender are independent, if you never specify an appender except in the root-logger all will go to the declared appenders and filtered by the different appender.
See the apache log4j documentation http://logging.apache.org/log4j/
-
5. Re: JBOSS 5.1 and jboss-log4j.xml
dinocsc Feb 3, 2012 11:07 AM (in response to peterj)No Problem Peter. Here is the xml file. We did not touch it. It is the default copy after install of JBOSS.
-
jboss-log4j.xml 14.4 KB
-
-
6. Re: JBOSS 5.1 and jboss-log4j.xml
dinocsc Feb 3, 2012 11:08 AM (in response to wdfink)Thanks for the clarification. I thought it was strange to add a "File" param to the Console appender config :-)
I will give this a try.