Description
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 } }
See attached project for a working example.