From: Jonathan S. <sw...@po...> - 2007-11-05 23:01:35
|
> On Sat, 3 Nov 2007, Mike Schilli wrote: > >> I'd like to write simultaneously to a central log file, and to >> a separate log file for each category. e.g. A log to category Foo.Bar >> would go to app.log and Foo.Bar.log. I want to do this automatically >> rather than having to configure each category separately. > > Interesting problem ... do you know ahead of time which categories > you're gonna run into? A script could call all kinds of Log4perl- > enabled > modules at runtime, adding new categories on-the-fly. > Right, I expected that new categories would keep cropping up. Why would it be a problem for an appender to open new filehandles on the fly? Other than worrying about maximum # of filehandles? Jon |