You might want to check out
Log::Log4perl and the
Log4j docs, it is on my list of things to do. I have never had to accomplish this task; however, this would apear to be the tool to do it. Good luck, and please follow up with your solution, I'm curious to know what you decide on.
Evan Carroll
www.EvanCarroll.com