<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Not only Oracle but our own Weld has this. It is awesome. I googled
error codes and fixed the problem immediately. Fantastic idea! <br>
<br>
On 11-03-16 6:39 AM, Manik Surtani wrote:
<blockquote
cite="mid:1FB224F5-AB26-4C18-99B7-DFA87D073921@jboss.org"
type="cite">Yup. Essentially if anyone's ever worked with Oracle
DB, plugging an ORA-12345 error code into Google usually gives you
details of the error regardless of the i18n error message you find
in the logs.
<div><br>
<div>
<div>On 16 Mar 2011, at 09:08, Emmanuel Bernard wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word;">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 moz-do-not-send="true"
href="mailto:galder@redhat.com">galder@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex;
border-left: 1px solid rgb(204, 204,
204); 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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:manik@jboss.org">manik@jboss.org</a><br>
> <a moz-do-not-send="true"
href="http://twitter.com/maniksurtani"
target="_blank">twitter.com/maniksurtani</a><br>
><br>
> Lead, Infinispan<br>
> <a moz-do-not-send="true"
href="http://www.infinispan.org/"
target="_blank">http://www.infinispan.org</a><br>
><br>
><br>
><br>
>
_______________________________________________<br>
> infinispan-dev mailing list<br>
> <a moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
> <a moz-do-not-send="true"
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 class="h5"><br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote>
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;">
<div>
<div>--</div>
<div>Manik Surtani</div>
<div><a moz-do-not-send="true"
href="mailto:manik@jboss.org">manik@jboss.org</a></div>
<div><a moz-do-not-send="true"
href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div>
<div><br>
</div>
<div>Lead, Infinispan</div>
<div><a moz-do-not-send="true"
href="http://www.infinispan.org">http://www.infinispan.org</a></div>
<div><br>
</div>
</div>
</span><br class="Apple-interchange-newline">
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
</blockquote>
<br>
</body>
</html>