On 11/2/05, Johnny Tolliver <[EMAIL PROTECTED]> wrote: > I use JULI for my servlet logging and am having trouble defining a custom > formatter for console handler output. An excerpt of my logging.properties file > is this: > > handlers=org.apache.juli.FileHandler,java.util.logging.ConsoleHandler > .level=INFO > > org.apache.juli.FileHandler.formatter = mypackage.MyFormatter > java.util.logging.ConsoleHandler.formatter = mypackage.MyFormatter > > As expected, java.util.logging.Logger output goes to both the console handler > and the file handler, but only the file handler output uses MyFormatter. It > seems that console hanlder output is always formatted with SimpleFormatter no > matter what. > > Is that expected behavior? Can it be fixed? Thanks.
java.util.logging.ConsoleHandler will only load formatter classes from the system classloader. -- xxxxxxxxxxxxxxxxxxxxxxxxx Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL xxxxxxxxxxxxxxxxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]