|
From: Marco A. V. C. <mav...@bi...> - 2003-12-12 10:24:30
|
Hi All,
I've been looking around but could not find a good anwser or guidelines for
this. I have log4perl conf file that look like this:
log4perl.rootLogger=DEBUG,File
log4perl.category.BiT.Inter = INFO
log4perl.category.BiT.Inter.Adaptor.bitc2 = FATAL
log4perl.category.BiT.Inter.Adaptor.test = DEBUG
log4perl.category.BiT.Inter.Adaptor.auth = INFO
log4perl.category.BiT.Inter.Adaptor.info = DEBUG
log4perl.appender.File = Log::Dispatch::File
log4perl.appender.File.filename = /tmp/biti.log
log4perl.appender.File.mode = append
log4perl.appender.File.layout = \
Log::Log4perl::Layout::PatternLayout
log4perl.appender.File.layout.ConversionPattern = %d %C %m %n
And there is no problem in here, as expected log4perl logs everything in
'/tmp/biti.log'. But as you can see there's BiT.Inter.Adaptor.* classes and they
are coded with very different propouses, so have all logs in one file makes more
difficult to access/correct some bug. I was thinking in have one file for each
Adaptor, but this means write one more Appender configuration for each Adaptor.
But I expect more and more Adaptors and as a programmer I'm very lazy, the
result I want is that each new adaptor added in my conf file will imply a nre
log file with it's name. And other messages to this main log file '/tmp/biti.log'
Can anyone point me some thoughts about it?
Thanks in advance.
Marco.
--
Marco A Valtas Cunha http://scarecrow.fmrp.usp.br/~mavcunha/
Lab de Bioinformatica http://bit.fmrp.usp.br
Hemocentro de Rib Preto http://ctc.fmrp.usp.br
Fax: 55 16 3963-9309 Tel: 55 16 3963-9300 R:9603
|