<correction>
1. a single Properties object
</correction>

> -----Original Message-----
> From: Moran Ben-David [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 09, 2005 10:03 AM
> To: 'Log4J Users List'
> Subject: RE: Inheriting configuration
> 
> Hello Hein,
> 
> I am doing a similar thing that you are looking for.  That is, I am using
> multiple files to create a single configuration for log4j.  The way I do
> this is to
> 
> 1. create a set of Properties
> 2. use the PropertiesConfigurator to initialize log4j.
> 
> To do step 1, I am using Jakarta's Commons Configuration.  That allows me
> to
> get a single "Configuration" out of many files.  This module allows you to
> load from many types of sources: JDBC, Xml, .properties file, etc.  You
> will
> most likely need to use a CompositeConfiguration to decide in runtime that
> you need the extra xml file.
> 
> Hope that helps,
> moran ben-david
> www.place-base.com
> 
> > -----Original Message-----
> > From: Hein Meling [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 09, 2005 7:25 AM
> > To: Log4J Users List
> > Subject: Inheriting configuration
> >
> > Hi
> >
> > Is it possible to inherit (import) configuration from one log4j-main.xml
> > to another?
> >
> > Say for example, you want to define a common set of appenders, and also
> > some common loggers, but for some subproject you want to define specific
> > loggers only for that subproject's log4j-subproj.xml file.
> >
> > If a particular logger is define in both log4j-*.xml files, I assume the
> > subproject version would override the loggers in log4j-main.xml.
> >
> > Is this possible?  If so, how can I do it?
> >
> > I'm currently using log4j v1.3alpha3.  Eagerly awaiting alpha7 ;-)
> >
> > Thanks,
> >
> > Hein
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to