<div dir="ltr">We could just ensure that "version" is in the category and use a filter. That requires some buy-in from external dependencies though. I guess really any solution requires some kind of buy-in.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 2:15 PM, David M. Lloyd <span dir="ltr"><<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Since 2007 at least [1]. I believe it came from an earlier set of<br>
standards which predate my employment with JBoss but that was so long<br>
ago that I don't recall for certain.<br>
<br>
That said, I'm open to revising how we do this as well. The log<br>
segregation tools we theoretically have at our disposal are:<br>
<br>
• Level<br>
• Category<br>
• NDC<br>
• MDC<br>
• Source class/method/file/line<br>
• Arbitrary filter<br>
<br>
However, I don't really have any bright ideas as to a *good* way to do<br>
this (which is simple and hard for users to break, but also doesn't<br>
screw up performance).<br>
<br>
[1] <a href="https://developer.jboss.org/wiki/LoggingStandards/version/2" rel="noreferrer" target="_blank">https://developer.jboss.org/<wbr>wiki/LoggingStandards/version/<wbr>2</a><br>
<div class="HOEnZb"><div class="h5"><br>
On 03/28/2017 03:54 PM, Brian Stansberry wrote:<br>
> We already have codes for a lot of these messsages so there’s not much added noise.<br>
><br>
> FWIW I hope we don’t have a standard to log every lib version. We already are way too noisy at boot, IMHO. If someone has a nifty way to write these to the server log but not the console that would be lovely. And I’d like a pony too. ;)<br>
><br>
>> On Mar 28, 2017, at 2:10 PM, David M. Lloyd <<a href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>> wrote:<br>
>><br>
>> This is relatively minor but I've been sitting on it for a pretty long<br>
>> time so I wanted to see if anyone had a strong opinion about it.<br>
>><br>
>> In the past few years, we've internationalized many of our projects, and<br>
>> in the process assigned unique, searchable codes to exceptions and<br>
>> INFO-and-higher log messages. In the meantime, as part of our existing<br>
>> logging standards, we always log a version string for each library as it<br>
>> is activated (this lets us quickly identify which versions of which<br>
>> libraries are active, in order to aid in troubleshooting, etc.).<br>
>><br>
>> At present it is not part of our logging standard to assign a searchable<br>
>> code to the version message. It has been suggested that we begin doing<br>
>> so. If we did, I would recommend that the code be '0' for such messages<br>
>> as most if not all of our projects use '1' as the lowest message ID.<br>
>><br>
>> The advantage of doing so is that it allows a given library's version<br>
>> message to be quickly found in a log file, even if the language of the<br>
>> log file is not known to the searcher. The disadvantage is that it<br>
>> brings in additional noise to the log which makes it harder to read.<br>
>><br>
>> Does anyone have any strong feelings one way or the other, or better<br>
>> yet, some pros or cons to add?<br>
>><br>
>> --<br>
>> - DML<br>
>> ______________________________<wbr>_________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
><br>
<br>
--<br>
- DML<br>
______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>