You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Madhu Gowda <ma...@yahoo.com> on 2008/08/19 08:21:37 UTC

root node of configuration file

Hi all,

I am using a xml file to configure the logger.
Here, the xml file needs the root node as <log4j:configuration> or <configuration>.

I donot want the root node to be named as <log4j:configuration> or <configuration>, as my configuration file contains some other information also.

Is this possible to keep the root node something other than <log4j:configuration> or <configuration>.

Regards,
Madhu Gowda



      

Re: root node of configuration file

Posted by Dale King <da...@gmail.com>.
Not without changing the software. I don't understand why you would want
this. You say that it contains other information. The parser ignores any
child elements of the configuration that are not one of the tags it knows
about so you can put other information within the configuration.

On Tue, Aug 19, 2008 at 2:21 AM, Madhu Gowda <ma...@yahoo.com>wrote:

> Hi all,
>
> I am using a xml file to configure the logger.
> Here, the xml file needs the root node as <log4j:configuration> or
> <configuration>.
>
> I donot want the root node to be named as <log4j:configuration> or
> <configuration>, as my configuration file contains some other information
> also.
>
> Is this possible to keep the root node something other than
> <log4j:configuration> or <configuration>.
>
> Regards,
> Madhu Gowda
>
>


-- 
Dale King

Re: root node of configuration file

Posted by "Jacob L. Anawalt" <ja...@geckosoftware.com>.
On 2008-08-19 00:21, Madhu Gowda wrote:
> as my configuration file contains some other information also.

> Is this possible to keep the root node something other than <log4j:configuration>

You could modify CONFIGURATION_TAG and other code in domconfigurator.cpp and do 
a custom build, but unless only you are going to be dealing with the resulting 
app, and make it clear that it's not following log4j.dtd, it may bite someone in 
the future.

I use multiple configuration files in a configuration directory.

-- 
Jacob Anawalt
Gecko Software, Inc.
janawalt@geckosoftware.com
435-752-8026