Skip to content

Commit

Permalink
corrections supplied by Jerome Euzenat
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Mar 13, 2013
1 parent 67a67f4 commit a97ef2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions slf4j-site/src/site/pages/legacy.html 100644 → 100755
Expand Up @@ -223,14 +223,14 @@ <h2 class="doAnchor" name="jul-to-slf4j">jul-to-slf4j bridge</h2>
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>.
Expand Down
8 changes: 5 additions & 3 deletions slf4j-site/src/site/pages/manual.html 100644 → 100755
Expand Up @@ -399,9 +399,11 @@ <h3 class="doAnchor" name="consolidate">Consolidate logging via

<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
Expand Down

0 comments on commit a97ef2a

Please sign in to comment.