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

Piotr Karwasz commented on KAFKA-18247:
---------------------------------------

FYI: We are currently working on a {{log4j-transform-cli}} tool to 
automatically convert logging configuration files between formats. We didn't 
publish the tool yet, but you can download {{log4j-transform-cli-*-shaded.jar}} 
from [Apache 
Snapshots|https://repository.apache.org/content/groups/snapshots/org/apache/logging/log4j/log4j-transform-cli/0.3.0-SNAPSHOT/].
It's usage should be straightforward:

{code:bash}
java -jar log4j-transform-cli-shaded.jar config-file list-formats
{code}

lists the supported configuration file formats, while, e.g.:

{code:bash}
java -jar log4j-transform-cli-shaded.jar config-file convert -i v1:properties 
log4j.properties -o v2:yaml log4j2.yaml
{code}

converts a Log4j 1 Properties configuration file {{log4j.properties}} to the 
Log4j 2 YAML configuration file format and stores it as {{log4j2.yaml}}.

The tool is documented on [our staging 
site|https://logging.staged.apache.org/log4j/transform/cli.html#log4j-transform-cli].
 Feel free to report problems with it to [GitHub 
issues|https://github.com/apache/logging-log4j-transform/issues].


> Use log4j2 yaml to rewrite the fix of KAFKA-18145
> -------------------------------------------------
>
>                 Key: KAFKA-18247
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18247
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Chia-Ping Tsai
>            Assignee: Jhen-Yung Hsu
>            Priority: Major
>
> the fix of KAFKA-18145 is not migrated to log4j2 yaml, and hence the test 
> `test_dynamic_logging` can't have non-root logger to complete the test 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to