Updated the Logging paragraph regrading the switch to slf4j.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14837 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
4bf13b7e9b
commit
f926cf3c34
|
@ -1228,17 +1228,14 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
|
||||||
<title>Logging</title>
|
<title>Logging</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Hibernate logs various events using Apache commons-logging.
|
Hibernate Annotations utilizes <ulink url="http://www.slf4j.org/">Simple Logging Facade for Java</ulink>
|
||||||
</para>
|
(SLF4J) in order to log various system events. SLF4J can direct your logging output to
|
||||||
|
several logging frameworks (NOP, Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on your
|
||||||
<para>
|
chosen binding. In order to setup logging properly you will need <filename>slf4j-api.jar</filename> in
|
||||||
The commons-logging service will direct output to either Apache Log4j
|
your classpath together with the jar file for your preferred binding - <filename>slf4j-log4j12.jar</filename>
|
||||||
(if you include <literal>log4j.jar</literal> in your classpath) or
|
in the case of Log4J. See the SLF4J <ulink url="http://www.slf4j.org/manual.html">documentation</ulink> for more detail.
|
||||||
JDK1.4 logging (if running under JDK1.4 or above). You may download
|
To use Log4j you will also need to place a <filename>log4j.properties</filename> file in your classpath,
|
||||||
Log4j from <literal>http://jakarta.apache.org</literal>.
|
an example properties file is distributed with Hibernate in the <literal>src/</literal> directory.
|
||||||
To use Log4j you will need to place a <literal>log4j.properties</literal>
|
|
||||||
file in your classpath, an example properties file is distributed with
|
|
||||||
Hibernate in the <literal>src/</literal> directory.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
|
Loading…
Reference in New Issue