corrections supplied by Jerome Euzenat

This commit is contained in:
Ceki Gulcu 2013-03-13 10:27:55 +01:00
parent 67a67f4c59
commit a97ef2aaff
2 changed files with 7 additions and 5 deletions

4
slf4j-site/src/site/pages/legacy.html Normal file → Executable file
View File

@ -223,14 +223,14 @@
because packages under the java.* namespace cannot be because packages under the java.* namespace cannot be
replaced. Instead, jul-to-slf4j translates <a replaced. Instead, jul-to-slf4j translates <a
href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/logging/LogRecord.html?is-external=true">LogRecord</a> href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/logging/LogRecord.html?is-external=true">LogRecord</a>
objects into their SLF4J equivalent. Please note this traslation objects into their SLF4J equivalent. Please note this translation
process incurs the cost of constructing a <code>LogRecord</code> process incurs the cost of constructing a <code>LogRecord</code>
instance regardless of whether the SLF4J logger is disabled for instance regardless of whether the SLF4J logger is disabled for
the given level or nor. <b>Consequently, j.u.l. to SLF4J the given level or nor. <b>Consequently, j.u.l. to SLF4J
translation can seriously increase the cost of disabled logging translation can seriously increase the cost of disabled logging
statements (60 fold or 6000%) and measurably impact the statements (60 fold or 6000%) and measurably impact the
performance of enabled log statements (20% overall increase).</b> performance of enabled log statements (20% overall increase).</b>
As of logback-version 0.9.25, it is possible to completely As of logback version 0.9.25, it is possible to completely
eliminate the 60 fold translation overhead for disabled log eliminate the 60 fold translation overhead for disabled log
statements with the help of <a statements with the help of <a
href="http://logback.qos.ch/manual/configuration.html#LevelChangePropagator">LevelChangePropagator</a>. href="http://logback.qos.ch/manual/configuration.html#LevelChangePropagator">LevelChangePropagator</a>.

8
slf4j-site/src/site/pages/manual.html Normal file → Executable file
View File

@ -399,9 +399,11 @@ SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
<h3 class="doAnchor" name="mdc">Mapped Diagnostic Context (MDC) support</h3> <h3 class="doAnchor" name="mdc">Mapped Diagnostic Context (MDC) support</h3>
<p>"Mapped Diagnostic Context" is essentially a map maintained by the <p>"Mapped Diagnostic Context" is essentially a map maintained
logging framework where the application can provided key-value pairs, by the logging framework where the application code provides
which can then be inserted by the logging framework in log messages.</p> key-value pairs which can then be inserted by the logging
framework in log messages. MDC data can also be highly helpful
in filtering messages or triggering certain actions.</p>
<p>SLF4J supports MDC, or mapped diagnostic context. If the <p>SLF4J supports MDC, or mapped diagnostic context. If the
underlying logging framework offers MDC functionality, then underlying logging framework offers MDC functionality, then