apache / apache/logging-log4j-transform

`appenderRefs` in v1 properties files not handled correctly

Open
#213 4 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Java
Stars
6
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Converting [this file](https://github.com/apache/logging-log4j2/blob/2.x/log4j-core-test/src/test/resources/log4j-rolling.properties) from `v1:properties` to `v2:xml` produces invalid configuration:

```shell
$ java -jar ~/Downloads/log4j-transform-cli.jar config-file convert -i v2:properties -o v2:xml log4j-core-test/src/test/resources/log4j-rolling.properties output.xml
```

```xml



























```

This results in a runtime warning:

```
[junit] 2025-08-04T21:49:33.638Z main ERROR Root contains an invalid element or attribute "appenderRefs"
```

I assume that `rootLogger.appenderRefs=...` is valid Log4j2 properties config syntax, since it appears in Log4j2's test corpus as well as various Google search results ([example](https://coderanch.com/t/785028/java/log-creating-logging-file-console)).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.