log4j - Different Pattern for levels, configuration in XML
I am very new to log4j, and i need to find a way to make a different logging pattern for different levels (obviously, debug has to be much more detailed..). I looked around, and found this htt?://wiki.apache.org/logging-log4j/UsefulCode (under "Setting The Conversion Pattern Layout Differently Per Logging Level"). (* why cant i put a url if i have no 20 posts?! :confused::confused:)
Do we really have to patch up our code in order to do such an trivial task? and anyhow, i dont think this code would work with XML configuration (which is a given in my case..).
What else can I do?
I tried making another logger, besides my root logger, but then I get messages printed twice..
Thanks for your help,