Using the log classes in java.util.logging, is it possible to configure two different FileHandlers with different formats that will write different log data to two different files?
I am currently using the logging.properties file, and the line of handlers is not encouraging:
handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler
I do not see how I could distinguish two java.util.logging.FileHandlerlater in the file.
Look at the related questions, it seems that switching to Log4J will give me the desired flexibility, but I would prefer to avoid depending on another library if the JSE log library could be turned into what I want somehow.
source
share