Hey slf4j guys,
I have a feature Request regarding Localized Logging. Since a localized Message is localized ;-) it is hard to google it. I have had that issue with some java programs already. Because there is no way I could know the english message, when the program runs in german. Therefore I would appreciate a standardized API that allows to have a common part (like an error code) and a localized part on any localized message. For example #The properties file APPLICATION_STARTED=Application {0} has started. //EITHER like this (which does not actually feel that good): enum Production { APPLICATION_STARTED("MyApp001"); publicString CODE; privateProduction(String CODE) { this.CODE= CODE; } } //used like this locLogger.info(Production.APPLICATION_STARTED, Production.APPLICATION_STARTED.CODE, "fooApp"); //output: [MyApp001] Application fooApp has started. //-------------------------------------------------------------- //OR maybe another way locLogger.info("fooApp". Production.APPLICATION_STARTED); //output: [Production.APPLICATION_STARTED] Application fooApp has started. I hope I can at least open a discussion. Thanks a lot for reading. Michael
_______________________________________________ dev mailing list dev@slf4j.org http://www.slf4j.org/mailman/listinfo/dev