Skip to content

Commit

Permalink
Document availability of log4j2 logging, many thanks to user fireandf…
Browse files Browse the repository at this point in the history
…uel on GitHub for adding the support to mchange-commons-java.
  • Loading branch information
swaldman committed Jan 27, 2019
1 parent 7dfdda6 commit 5caea41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ <h3>
<p>
c3p0 uses a custom logging library similar to jakarta commons-logging. Log messages can be directed to
the to the popular <a href="http://www.slf4j.org/">slf4j</a> (with its <a href="http://logback.qos.ch/">logback backend</a>),
to the venerable log4j library,
to the venerable log4j library, the more recent log4j2 library,
to the standard logging facility introduced with jdk1.4, or to
<tt>System.err</tt>. Nearly all configuration should be done at the level of your preferred logging
library. There are a very few configuration options specific to c3p0's logging, and usually the defaults
Expand All @@ -1643,19 +1643,21 @@ <h3>
<dd>
<div class="propdesc">
Determines which library c3p0 will output log messages to. By default, if slf4j is available,
it will use that library, otherwise log4j if available, otherwise jdk1.4 logging apis,
it will use that library, otherwise log4j if available, otherwise log4j2 if available, otherwise jdk1.4 logging apis,
and if all are unavailable, it will fallback to logging via <tt>System.err</tt>.
If you want to directly control which library is used, you may set this property to one of:
<ul>
<li><tt>com.mchange.v2.log.slf4j.Slf4jMLog</tt></li>
<li><tt>com.mchange.v2.log.log4j.Log4jMLog</tt></li>
<li><tt>com.mchange.v2.log.log4j2.Log4j2MLog</tt></li>
<li><tt>com.mchange.v2.log.jdk14logging.Jdk14MLog</tt></li>
<li><tt>com.mchange.v2.log.FallbackMLog</tt></li>
</ul>
Alternatively, the following abbreviations are supported:
<ul>
<li><tt>slf4j</tt></li>
<li><tt>log4j</tt></li>
<li><tt>log4j2</tt></li>
<li><tt>jul, jdk14, java.util.logging</tt></li>
<li><tt>fallback</tt></li>
</ul>
Expand Down

0 comments on commit 5caea41

Please sign in to comment.