<div dir="ltr">That is very helpful. Thanks.<div><br></div><div style>This would be good information to state early in the Logback Introduction, as it helps people visualize the transition from extensible levels to the Logback Way.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 6:48 PM, Hontvári József Levente <span dir="ltr"><<a href="mailto:hontvari@flyordie.com" target="_blank">hontvari@flyordie.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I did not made the decision, but I know from my experience, that as you increase the number of log levels, their meaning become very subjective. The severity of the current set of levels in Logback can be understand relatively easily and the fixed set provides interoperability between different tools, applications and libraries.<br>
<br>
For example, syslog has four sublevels for errors: Emergency, Alert, Critical, Error. A developer has no chance to determine in advance what error conditions will count as an Emergency, which will require Alert procedures, which error conditions are critical and which ones are errors, but non-critical. He cannot even establish a specific order between error conditions, because that is, again, site specific and even within a single site it will change over time. Moreover, developers will differ. What seems to be Critical for one developer of one applicaton will be Emergency for another developer of another application/library.<br>
<br>
Assignment of administration procedures to specific conditions should be configured in tools, not hard coded in source code.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On <a href="tel:2013.01.06.%2023" value="+12013010623" target="_blank">2013.01.06. 23</a>:15, Mark Petrovic wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks.<br>
<br>
My question is not how I work around a finite and inextensible set of Levels, but why the design decision to make Levels final at all.<br>
<br>
On Jan 6, 2013, at 1:05 PM, ceki <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Instead of levels, you can tag log statements with markers which are part of the SLF4J API. See [1] and [2].<br>
<br>
[1] <a href="http://tinyurl.com/a5jogy8" target="_blank">http://tinyurl.com/a5jogy8</a><br>
[2] <a href="http://www.slf4j.org/api/org/slf4j/Marker.html" target="_blank">http://www.slf4j.org/api/org/<u></u>slf4j/Marker.html</a><br>
<br>
On 06.01.2013 20:49, Mark Petrovic wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In Logback, Levels are final, meaning one cannot extend them to create<br>
new levels. I have no problem with this, but my users are wondering<br>
about it. Can you explain?<br>
Thank you.<br>
</blockquote>
<br>
--<br>
Mark<br>
</blockquote>
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</blockquote>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mark
</div>