[ 
https://issues.apache.org/jira/browse/LOGCXX-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930618#comment-13930618
 ] 

exuvo commented on LOGCXX-429:
------------------------------

I was thinking of doing a similar thing but instead went with using <param 
name="File" value="${stratmas.install}logs/error" /> in the config and set the 
environment variable 'stratmas.install' in code right before calling 
log4cxx::xml::DOMConfigurator::configureAndWatch(config.string()). Maybe you 
could suggest that instead?
My Code 
https://github.com/sootn/aliquid-stratmas/blob/995303e7101799eb4aae2ec2c3e32183e16f39dc/StratmasServer/src/Logging/Log4C.cpp
My Log conf 
https://github.com/sootn/aliquid-stratmas/blob/995303e7101799eb4aae2ec2c3e32183e16f39dc/StratmasServer/bin/log4.xml

> Filewatcher configuration updated callback.
> -------------------------------------------
>
>                 Key: LOGCXX-429
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-429
>             Project: Log4cxx
>          Issue Type: Improvement
>          Components: Configurator
>            Reporter: Joseph Southwell
>            Priority: Minor
>
> We have a user who wants to partially configure from a file and needs a way 
> to update the configuration with his changes any time the file watcher thread 
> reloads the configuration file. After discussing this on the list the 
> consensus seems to be that we could have a callback the FileWatcher calls 
> whenever it updates the configuration.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to