> On Fri, 9 May 2008, Jonathan Swartz wrote:
>
>> I've got a growing number of log files for different categories
>> that I
>> would like to all have the same layout and pattern, e.g.
>
> Hi Jonathan,
>
> this is one of the items on my todo-list: To have an inheritance
> mechanism that lets you say something like
>
> log4perl.appender.file.inherits_from = \
> log4perl.appender.file_base
>
> and any property you don't specify in 'file' is inherited from
> file_base. It's not in L4p yet, but hopefully soon! ;)
>
That would be great!
In the meantime, I might try to do this myself by creating my own
Appender subclass:
# My::Log4perl::Appender::File defaults to my preferred layout
and layout.ConversionPattern
log4perl.appender.file1 = My::Log4perl::Appender::File
log4perl.appender.file2 = My::Log4perl::Appender::File
Do you have a vague idea of how I might approach this? Or is it too
diffiicult, and I should just suck up the repetition until the
inheritance feature? :)
Jon
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel