How can I trap calls to Logger.getLogger() so I can configure each logger dynamically?

Our app operates on data in dynamically-created directories. Every time we see a new directory, we want to create a new logger to put the logs in a new subdirectory. This means that we need a new logger instance for each directory, which must have its own FileAppender with the appropriate subdirectory name.

The trouble is that I can't configure all of these directory names in advance in log4j.properties because I don't know what they will be.




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to