<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The road taken by JBoss Logging is to:<div> - associate an alphanumerical code that you can search on the internet. And of course by default messages are in English.</div><div> - use methods to generate the log call<br><div><br></div><div><b>in Infinispan code</b></div><div>if ( txLog == null ) {</div><div> LOG.txLogPushError(txId);</div><div>}</div><div><br></div><div>@MessageLogger( projectCode = "ISPN" )</div><div>public interfaceInfinispanLogger extends BasicLogger {</div><div> @LogMessage( level = ERROR )<br> @Message( value = "Error pushing tx log (tx id=%1$)", id = 345 )<br> void txLogPushError(String txId);</div><div><br></div><div><b>in your app log</b></div><div>ISPN000345 Error pushing tx log (tx id=3232)</div><div><br></div><div><br></div><div><b>later on, on a wiki page</b></div><div><br></div><div>ISPN-000345 Error pushing tx log</div><div>When this happens, you're screwed unless you use JBoss Transaction and then...<br><div><br><div><br></div><div>I could not really find the doc for JBoss Logging but David will know where it is.</div><div><br><div><div>On 16 mars 2011, at 09:42, Tristan Tarrant wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">The only problem I have with this is that if all error / logging messages are i18n'ed, they will be difficult to search for on the web / forums / wikis. <div>For this reason all error messages should include a locale-independent error code. Numeric is ok, but I'd rather have a "readable" error code. </div>
<div>For example the string "Error pushing tx log" in InvertedLeaveTask.java would become "TX_LOG_PUSH_ERR: Error pushing tx log".</div><div><br></div><div>Any thoughts on this ?</div><div><br></div><div>
Tristan</div><div><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 09:09, Galder Zamarreņo <span dir="ltr"><<a href="mailto:galder@redhat.com">galder@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Mar 15, 2011, at 6:29 PM, Manik Surtani wrote:<br>
<br>
><br>
> On 15 Mar 2011, at 17:21, Mircea Markus wrote:<br>
><br>
>><br>
>> On 15 Mar 2011, at 17:17, Emmanuel Bernard wrote:<br>
>><br>
>>> As David pointed out %1$ is superior to %s for internationalization.<br>
>> Agreed.<br>
>> Not sure we want i18n for logs and error messages (?)<br>
><br>
> It's on our roadmap and a requirement for a few downstream projects/products.<br>
<br>
</div>Yup: <a href="https://issues.jboss.org/browse/ISPN-380" target="_blank">https://issues.jboss.org/browse/ISPN-380</a><br>
<div class="im"><br>
><br>
> --<br>
> Manik Surtani<br>
> <a href="mailto:manik@jboss.org">manik@jboss.org</a><br>
> <a href="http://twitter.com/maniksurtani" target="_blank">twitter.com/maniksurtani</a><br>
><br>
> Lead, Infinispan<br>
> <a href="http://www.infinispan.org/" target="_blank">http://www.infinispan.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> infinispan-dev mailing list<br>
> <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
</div><font color="#888888">--<br>
Galder Zamarreņo<br>
Sr. Software Engineer<br>
Infinispan, JBoss Cache<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br></div></div></div></div></body></html>