logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LOG4J2-1013) Log4j2 Main Arguments Lookup by name doesn't work
Date Fri, 05 Aug 2016 05:59:20 GMT

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

Gary Gregory edited comment on LOG4J2-1013 at 8/5/16 5:58 AM:
--------------------------------------------------------------

What about using {{$\{lookup:key:'defaultValue'\}}}

Or double quotes (maybe ignore escaping for now).


was (Author: garydgregory):
What about using {{$\{lookup:key:'defaultValue'\}}}

> Log4j2 Main Arguments Lookup by name doesn't work
> -------------------------------------------------
>
>                 Key: LOG4J2-1013
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1013
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API, Core, Lookups
>    Affects Versions: 2.2
>         Environment: Windows 7 x64 Ultimate and Java 8U31 x64. Project created using
Eclipse.
>            Reporter: Ioan Mihaila
>            Priority: Critical
>             Fix For: 2.7
>
>
> Accessing Main Arguments by using index based look up works : $\{main:0}
> Accessing Main Arguments by using name based look up doesn't work : $\{main:--file}
> When trying to access by name it doesn't retrieve the argument but retrieves "-file".



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

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


Mime
View raw message