Re: log objects and use the values separately in the appenders wi th conversion pattern

2005-01-18 Thread Joerg Eggink
Hello Dirk Thank you very much. That is exacly what I need. Best Regards Joerg OOMS DIRK wrote: You could map the 3 strings onto MDC key-value pairs, e.g. (m1, string1) and address them in a PatternLayout by %X{m1}, etc. Hope this is what you were looking for. dirk Dear All Is it possible to

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Joerg Eggink
Hi James Did you try the following: 1. add log4j.jar to your application WEB-INF/lib 2. add log4j.xml to your WEB-INF/classes 3. connect from your application with e.g. private static Logger logger = null; logger.getLogger(CategoryName).log(CategoryName, Level.INFO, message,null); I remeber that

log objects and use the values separately in the appenders with conversion pattern

2005-01-17 Thread Joerg Eggink
Dear All Is it possible to log for example a object with 3 strings and refer it later in PatternLayout with e.g %m1 %m2 %m3 ? Below there is some dummy code. Thanks in advance for any hint. Best Regards Joerg Example dummy code: -- class MESSAGE{ public String a; public