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

Mikael Ståldal commented on LOG4J2-1528:
----------------------------------------

My impression is that XML is the "main" configuration format for Log4j 2. 
That's the impression you get from our documentation. I also prefer and always 
use XML config myself.

I was able to do this XML serialization without any extra dependencies (using 
only standard Java APIs).

I think it would be quite easy to do the same for JSON/YAML also, but that 
might bring in extra dependencies like Jackson (there are no standard Java APIs 
for JSON or YAML as far as I know).


> Serialize configuration into a log4j2.xml file
> ----------------------------------------------
>
>                 Key: LOG4J2-1528
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1528
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Configurators
>    Affects Versions: 2.6.2
>            Reporter: Mikael Ståldal
>            Assignee: Mikael Ståldal
>
> This would be useful for e.g. converting from Log4j 1 to Log4j 2 config.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to