tags:

views:

25

answers:

0

Hello,

I know Log4j does this but I am not allowed to add this dependency again. I want to log to two different files from the same logging.properties

What is the simplest log file that will accomplish this assuming that:

  1. FileHandler is java.util.logging.FileHandler
  2. com.package is one package
  3. com.diffpackage is another package
  4. FileHandlerTwo is just an extended java.util.logging.FileHandler
  5. One package should log to filea and another should log to fileb

This is of course assuming that I am importing java.util.logging, getting the logger and setting it to the class name.