Re: Messages in a Loop

2005-05-27 Thread Antoine TYNEVEZ
Hi Ivan, I think you could do like this : class A { Logger loggerA = Logger.getLogger(A.class.getName()); boolean doLogging = true; void loop { while (true) { // some logix ... // some verification if (condition && doLogging) { loggerA.error("xxx"); // error msg doLogg

Re: Generating Log files with specified File Encoding type- UTF8, Latin 1

2005-05-27 Thread Curt Arnold
Try using "UTF-8". The encoding gets passed down to the Java class library which supports at a minimum the 6 encoding names listed at http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/ Charset.html, If you go off this list, you are depending on implementation or platform specific fe

Generating Log files with specified File Encoding type- UTF8, Latin 1

2005-05-27 Thread Ramkumar Polakulath
Hi, Can any one provide a sample code on how to generate log files on specified encoding format(UTF8,latin1 etc). I use the following, but doesn't seems to be working out exactly. Or to be more precise can any one pls verify the below code for its correctness-

Re: Log4j logging under Tomcat5 (was Re: Multiple Projects Using Same Logger)

2005-05-27 Thread Bruno Melloni
FYI, I have seen this behavior in one of the 4.0x versions of jBoss too (probably because it uses Tomcat). In any case, by 4.0.2 they had fixed it, so there might be a correction for Tomcat itself too. Bruno Melloni Director of Software Architecture Akuratus Corporation 1333 N. Stemmons Fwy, Suit