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.

-- Mike

Mike Schilli
[EMAIL PROTECTED]

> Before I set out to create this, I was curious if anyone else has done
> this and has advice, or if there is an existing appender/ dispatcher
> that does this (couldn't find anything on cpan).
>
> Seems like one of the potential problems will be reaching a maximum
> number of open file handles, given the large number of possible
> categories. So I might have to maintain a "cache" of open
> filehandles, closing old ones as needed when reaching a limit.
>
> Feedback appreciated.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> log4perl-devel mailing list
> log4perl-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/log4perl-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to