-
1. Re: How to set my app level log4j to use JBoss Log levels
wdfink Aug 3, 2012 11:48 AM (in response to elangovans)I prefere the configuration in JBoss and not provide a app specific log4j.xml.
In that case you can control the levels by using CLI (i.e. standalone server)
/subsystem=logging/logger=com.intuit.loghub:add(level="ERROR")
/subsystem=logging/logger=com.intuit.loghub:write-attribute(name=level, value=TRACE)
It is also possible to add a file appender to use your app logfile.
-
2. Re: How to set my app level log4j to use JBoss Log levels
elangovans Aug 3, 2012 12:25 PM (in response to wdfink)Thanks for the quick response, Wolf! Thats a good idea. I will bounce that with my Operations team.
However, there is a little bit more to the puzzle.
I have a JSONPattenLayout class that we develoed internally and structure the log output in JSON format. If I put in the logger configuration in standalone.xml, is it possible to ue my own layout class? I beleive, if this class is not available during server startup the deployment will fail, right? How do I add any custom config like JSONPatternLayout?
-
3. Re: How to set my app level log4j to use JBoss Log levels
wdfink Aug 3, 2012 12:30 PM (in response to elangovans)I never try that.
You might have a look into the doc here