0 Replies Latest reply on Feb 10, 2006 6:07 AM by Per Newgro

    Own LoggingXMLFormatter not used

    Per Newgro Newbie

      Hello,

      i have a little problem. I use JDK-Logging in my beans. To configure the logging i assign the property

      -Djava.util.logging.config.file=myLogging.properties
      to run.sh.

      myLogging.properties
      # Add the handlers
      handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
      # console
      java.util.logging.ConsoleHandler.level=SEVERE
      java.util.logging.ConsoleHandler.formatter=my.logging.SimpleConsoleFormatter
      # file
      java.util.logging.FileHandler.level=FINEST
      java.util.logging.FileHandler.pattern=../server/own/log/application.xml%g
      java.util.logging.FileHandler.limit=1024000
      java.util.logging.FileHandler.formatter=my.logging.LoggingXMLFormatter


      The my.logging.LoggingXMLFormatter is contained in my deployed jar. The log file will be created correctly, but the format is invalid. I think the java.util.logging.XMLFormatter will be used. But i don't see why my config will not be assigned (I know that the XMLFormatter will be instanciated by FileHandler!).
      On client side i use same procedure and it works. So i think it could be a jboss related issue.

      Has anyone solved this problem and could bring me to the light?

      Cheers
      Per