users@glassfish.java.net

Re: Logging to multiple files using JDK logging?

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Nov 2007 18:10:03 PST

I had the same problem and implemented the ConfigLoggers but somehow i couldn't stick in the config file. GF doesn't pick up the JVM parameter -Djava.util.logging.config.file=abc.log

I even tried to intialize in the startup class
 static {
        try {
            Handler fh = new FileHandler("%h/abc%g.log");
            Logger.getLogger("com.j2.core").addHandler(fh);
        } catch (IOException ex) {
        }
      };


Both these options didn't work. Please advice.
[Message sent by forum member 'gokulkumark' (gokulkumark)]

http://forums.java.net/jive/thread.jspa?messageID=245747