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
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
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-
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