<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="Generator" content="Zarafa WebAccess v6.30.2-16545">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<title>Feature Request</title>
<style type="text/css">
body
{
font-family: Arial, Verdana, Sans-Serif;
font-size: 12px;
padding: 5px 5px 5px 5px;
margin: 0px;
border-style: none;
background-color: #ffffff;
}
p, ul, li
{
margin-top: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<p>Hey slf4j guys,</p><p> </p><p>I have a feature Request regarding Localized Logging.</p><p> </p><p>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.</p><p>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</p><p> </p><p> </p><p>#The properties file</p><p>APPLICATION_STARTED=Application <b>{0}</b> has started.</p><p> </p><p><pre source"><pre source"><span>//EITHER like this (which does not actually feel that good): <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span style="color: #7f0055">enum Production</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">{</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #0000c0"><span style="color: #000000"> </span>APPLICATION_STARTED<span style="color: #000000">(</span><span style="color: #2a00ff">"MyApp001"</span><span style="color: #000000">);</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> <span style="color: #7f0055">public</span> String <span style="color: #0000c0">CODE</span>;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> <span style="color: #7f0055">private</span> Production(String CODE)</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> {</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> <span style="color: #7f0055">this</span>.<span style="color: #0000c0">CODE</span> = CODE;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> }</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px">//used like this</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span style="text-decoration: underline">locLogger</span>.info(Production.APPLICATION_STARTED, Production.APPLICATION_STARTED.CODE, <span style="color: #2a00ff">"fooApp"</span>);<font face="monospace, Verdana, sans-serif" size="3"><span style="font-size: 12px;"><font face="Monaco, Verdana, sans-serif" size="3"><span style="font-size: 11px;"><br /></span></font></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">//output: [MyApp001] <span style="font-family: Arial, Verdana, sans-serif; font-size: 12px; white-space: normal; ">Application fooApp has started.</span><br /><br /><br />//--------------------------------------------------------------<br />//OR maybe another way<br type="_moz" /><span style="text-decoration: underline; ">locLogger</span>.info(<span style="color: rgb(42, 0, 255); ">"fooApp". <span style="color: rgb(0, 0, 0); ">Production.APPLICATION_STARTED);</span></span><br />//output: [Production.APPLICATION_STARTED] <span style="font-family: Arial, Verdana, sans-serif; font-size: 12px; white-space: normal; ">Application fooApp has started.</span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br /><br />I hope I can at least open a discussion.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br />Thanks a lot for reading.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br />Michael</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> </p></span></pre></span></pre></p>
</body>
</html>