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
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>
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>
instance regardless of whether the SLF4J logger is disabled for
the given level or nor. <b>Consequently, j.u.l. to SLF4J
translation can seriously increase the cost of disabled logging
statements (60 fold or 6000%) and measurably impact the
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
statements with the help of <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>
<p>"Mapped Diagnostic Context" is essentially a map maintained by the
logging framework where the application can provided key-value pairs,
which can then be inserted by the logging framework in log messages.</p>
<p>"Mapped Diagnostic Context" is essentially a map maintained
by the logging framework where the application code provides
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
underlying logging framework offers MDC functionality, then