You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/01/04 16:48:00 UTC
[jira] [Comment Edited] (LOG4J2-3312) Bridge does not convert properties
[ https://issues.apache.org/jira/browse/LOG4J2-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17468635#comment-17468635 ]
Gary D. Gregory edited comment on LOG4J2-3312 at 1/4/22, 4:47 PM:
------------------------------------------------------------------
Hi [~scanti81]
Please post your Log4j 1 properties file.
was (Author: garydgregory):
Hi [~scanti81]
Please posy your Log4j 1 properties file.
> Bridge does not convert properties
> ----------------------------------
>
> Key: LOG4J2-3312
> URL: https://issues.apache.org/jira/browse/LOG4J2-3312
> Project: Log4j 2
> Issue Type: Bug
> Components: log4j 1.2 emulation
> Affects Versions: 2.17.1
> Reporter: Enrico Scantamburlo
> Priority: Major
>
> I have tried to migrate my application from Log4j 1.2.17 to the latest.
> The first problem was that the class FileAppender was not inside the bridge jar.
> I resolved the issue copying the java file from the old version.
> Now I found out the that the properties that are in the log4j.properties are not converted when passed to my custom appeder.
> Like
> {{log4j.appender.FULL.file = ${user.home}/${user.name}}}
> is not expanded to {{/home/escantam/escantam}}
> The properties file is found and loaded but the properties no expanded when the setFile method is called.
> Is this a bug?
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)