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

Gary Gregory commented on LOG4J2-420:
-------------------------------------

I added a new lookup for the next release (whether it is a beta or release 
candidate):

Committed revision 1531064.

You can use it now if you build Log4J from source. The format is documented if 
you build the site, it is used as follows:

{noformat}
${bundle:BundleName:BundleKey}
{noformat}

For example:

{noformat}
${bundle:com.domain.Messages:MyKey}
{noformat}

The {{java.util.ResourceBundle}} class will look for 
{{com/domain/Messages.properties}} on the classpath.

> Create a lookup for resource bundle substitution
> ------------------------------------------------
>
>                 Key: LOG4J2-420
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-420
>             Project: Log4j 2
>          Issue Type: Question
>          Components: API
>    Affects Versions: 2.0-beta9
>         Environment: Windows 7
>            Reporter: Jonathan Willis
>             Fix For: 2.0-rc1
>
>         Attachments: bundlemap.png, log4j2xml.png
>
>
> I'm attempting to do property substitution using a lookup. At initialization 
> or runtime, I want emails in a resource bundle to replace a place placeholder 
> value in the log4j2.xml file. For more information about the question I 
> posted this question on stack overflow: 
> http://stackoverflow.com/questions/19277445/how-to-use-map-lookups-using-log4j2



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to