You don't need to make a file. You can just read the lines from the database
and put them into a helpers::Properties object which is just a map and pass
that to PropertyConfigurator::doConfigure.

Or you might want to create a DatabaseConfigurator class based off of
PropertyConfigurator.

On Wed, Apr 23, 2008 at 6:20 PM, Thomas Hahn <[EMAIL PROTECTED]> wrote:

> Hello,
> I usually end up with the PropertyConfigurator.
>
> In the config file I have the usual lines like:
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>
> ... lots other lines ...
>
> and finally:
> ...
> log4j.logger.someproggy.part1=INFO
>
> What I would like to do is to read the lines from a database
> and provide it to log4cxx.
>
> Is there such a way, or do I need to read "the lines" from the
> database and create a (temporary) configFile which than has
> to be parsed by log4cxx again?
>
> Tnx Thomas
>
>


-- 
Dale King

Reply via email to