Done: https://issues.apache.org/jira/browse/LOG4J2-1682
On 11/08/2016 09:32 AM, Remko Popma wrote:
Not sure if this is a bug or not but the described behavior sounds surprising...
Would you mind creating a JIRA ticket for this?
Sent from my iPhone
On 8 Nov 2016, at 16:20, Markus Waidhofer <markus...@aon.at> wrote:
Hi,
I am having a problem when logging localized messages. I use a Logger with the
LocalizedMessageFactory. However, everytime I pass the message key to the
logger, it prints the key itself instead of the message. If I pass additional
arguments to the logging method, the key gets translated correctly to the
message.
Example:
public class Showcase {
private static Logger logger = LogManager.getLogger(Showcase.class, new
LocalizedMessageFactory("messages"));
public static void main(String... args) {
logger.info("key.test"); // logs "key.test"
logger.info("key.test", ""); // prints message correctly
}
}
I'm not sure whether I do not use it correctly or if I hit a bug. Can you help
me, please?
See attachment for a working example.
Best regards
Markus
<exampleLocalizedMessageFactory.zip>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org