You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/02/05 17:50:00 UTC

[jira] [Comment Edited] (LOG4J2-3394) The 'rootLogger=${sys:root.logger:-INFO,console}' does not work

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

Ralph Goers edited comment on LOG4J2-3394 at 2/5/22, 5:49 PM:
--------------------------------------------------------------

[~ggregory] No, the syntax is correct for what he is trying to do. 

The code Matt added simply takes the values it finds and replaces the specified property with the two "normal" properties that PropertiesConfiguration expects. It simply isn't interpolating the value before processing it. It should be relatively simple to do that. At this point it would be using the default Interpolator.

If [~mattsicker] can't get to this I can do it right after I finish the task I am currently working on.


was (Author: ralph.goers@dslextreme.com):
[~ggregory] No, the syntax is correct for what he is trying to do. 

The code Matt added simply takes the values it finds and replaces the specified property with the two "normal" properties that PropertiesConfiguration expects. It simply isn't interpolating the value before processing it. It should be relatively simple to do that. At this point it would be using the default Interpolator.

> The 'rootLogger=${sys:root.logger:-INFO,console}' does not work
> ---------------------------------------------------------------
>
>                 Key: LOG4J2-3394
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3394
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Duo Zhang
>            Priority: Major
>         Attachments: log4j2.err, log4j2.properties
>
>
> Tried the new feature introduced in LOG4J2-3341 in hbase.
> https://github.com/apache/hbase/pull/4096
> I built a tarball and try to start a standalone hbase instance locally, but log4j2 failed to load the system properties of rootLogger.
> Will upload the config and error output.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)