Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 68102
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: frioux [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Add a way to change filename per category
We currently create a new file per category with our homemade logger thingy, and I'd love to be able to do this easily with Log4perl. I considered just subclassing the File appender but due to the fact that it doesn't use accessors it wouldn't be very clean. I'm glad to send a patch if you could give me guidance.
That's an interesting use case, but I'd rather see that at the Logger level than at the appender level. You might want to check out http://search.cpan.org/dist/Log-Log4perl-AutoCategorize/lib/Log/Log4perl/AutoCategorize.pm which does something different, but you might be able to borrow some code. -- Mike