You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Francesco Scipioni (Jira)" <ji...@apache.org> on 2020/03/23 17:13:00 UTC

[jira] [Comment Edited] (LOG4J2-2810) Allow ConfigurationSource from Remote URL

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

Francesco Scipioni edited comment on LOG4J2-2810 at 3/23/20, 5:12 PM:
----------------------------------------------------------------------

I want to read configuration from remote.

My scenario is a distributed system where at same time  multiprocess access the file configuration via http.

I've implemented a RemoteConfigurationFactory that read Configuration from remote and apply HttpWatcher to check modification 

 

The initial file is use to read the remote location, to avoid provide extra parameters but only scanning file configuration in priority order (.json, .xml, .yml, and perphas a .rjson, .rxml, .ryml)


was (Author: scip88):
I want to read configuration from remote.

My scenario is a distributed system where at same time  multiprocess access the file configuration via http.

I've implemented a RemoteConfigurationFactory that read Configuration from remote and apply HttpWatcher to check modification 

> Allow ConfigurationSource from Remote URL
> -----------------------------------------
>
>                 Key: LOG4J2-2810
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2810
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Configuration, Core
>            Reporter: Francesco Scipioni
>            Priority: Trivial
>
> Implement different remote version of XMLConfigurationFactory, JsonConfigurationFactory and so on, to allow the possibility to download file configuration from remote URL o FILE.
> In example you could use a file called log4j2.rjson and write on it where download the file:
> content of log4j2.rjon is : [http://127.0.0.1:8080/log]
> and get from that url a json configuration
>  
> In the same way you could use a log4j2.rxml to get the configuration in format XML:
> content of log4j2.rxml is : file://path/to/file/xml
>  
> If this can be reasonable i can work on it



--
This message was sent by Atlassian Jira
(v8.3.4#803005)