Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-09 Thread Kevin M. Goess
Mike Schilli wrote: > On Fri, 9 Nov 2007, Jonathan Swartz wrote: > >> My main worry is number of open file handles. Especially with >> mod_perl, since a lot of those handles will be opened individually in >> the child processes. Any idea what kind of limits on >> number of open handles I can expec

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-09 Thread Mike Schilli
On Fri, 9 Nov 2007, Jonathan Swartz wrote: > My main worry is number of open file handles. Especially with > mod_perl, since a lot of those handles will be opened individually in > the child processes. At the same time, I don't want to have to open > and close each handle every time. Any idea what

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-09 Thread Jonathan Swartz
> So you want a custom appender that dynamically changes the file it's > writing to. Since the appender's log() function gets > 'log4p_category' in > its %param hash, this should be straight-forward to implement. > > Sounds like an interesting idea, I'm looking forward to it! > Heh, no doubt. :)

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-09 Thread Mike Schilli
On Tue, 6 Nov 2007, Jonathan Swartz wrote: > >> 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? > > > > Categories are added at init() time, not

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-06 Thread Jonathan Swartz
> On Mon, 5 Nov 2007, Jonathan Swartz wrote: > >> 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? > > Categories are added at init() time, not at log

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-05 Thread Mike Schilli
On Mon, 5 Nov 2007, Jonathan Swartz wrote: > 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? Categories are added at init() time, not at log() time.

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-05 Thread Jonathan Swartz
> 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 cate

Re: [log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-03 Thread Mike Schilli
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 se

[log4perl-devel] appender/dispatcher that writes to per-category files

2007-11-03 Thread Mike Schilli
From: Jonathan Swartz <[EMAIL PROTECTED]> To: log4perl-devel@lists.sourceforge.net Subject: appender/dispatcher that writes to per-category files Date: Thu, 1 Nov 2007 17:00:36 -0700 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