From 0b9fe15820a2af24166ec6dd104cbc8e75a8e800 Mon Sep 17 00:00:00 2001
From: lukaseder
Date: Thu, 5 Jul 2018 12:53:19 +0200
Subject: [PATCH] [#7643] Use slf4j directly for logging, remove log4j
dependency
---
.../resources/org/jooq/web/manual-3.12.xml | 61 ++++++++-----------
1 file changed, 26 insertions(+), 35 deletions(-)
diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml
index 1f36e1a6f7..2bada6dfb4 100644
--- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml
+++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml
@@ -1202,19 +1202,14 @@ public class Main {
com.h2database
h2
- 1.3.168
+ 1.4.197
- log4j
- log4j
- 1.2.16
-
-
- org.slf4j
- slf4j-log4j12
- 1.7.5
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ 2.11.0
@@ -1535,19 +1530,14 @@ public class TransactionTest {
com.h2database
h2
- 1.4.177
+ 1.4.197
- log4j
- log4j
- 1.2.16
-
-
- org.slf4j
- slf4j-log4j12
- 1.7.5
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ 2.11.0
@@ -2035,9 +2025,9 @@ $$ LANGUAGE PLPGSQL;
9.4.1212
- log4j
- log4j
- 1.2.16
+ org.apache.logging.log4j
+ log4j-slf4j-impl
+ 2.11.0
]]>
@@ -2825,8 +2815,8 @@ fun main(args: Array) {
However, the above rule has some exceptions:
- - are referenced as "optional dependencies". jOOQ tries to find slf4j or log4j on the classpath. If it fails, it will use the
- - Oracle ojdbc types used for array creation are loaded using reflection. The same applies to Postgres PG* types.
+ - are referenced as "optional dependencies". jOOQ tries to find slf4j on the classpath. If it fails, it will use the
+ - Oracle ojdbc types used for array creation are loaded using reflection. The same applies to SQL Server types and Postgres PG* types.
- Small libraries with compatible licenses are incorporated into jOOQ. These include jOOR, jOOU, parts of OpenCSV, json simple, parts of commons-lang
- javax.persistence and javax.validation will be needed if you activate the relevant
@@ -14568,22 +14558,23 @@ try (Connection c = DSL.using(configuration.derive(new WasNull()))
Logging
- jOOQ logs all SQL queries and fetched result sets to its internal DEBUG logger, which is implemented as an . By default, execute logging is activated in the . In order to see any DEBUG log output, put either log4j or slf4j on jOOQ's classpath along with their respective configuration. A sample log4j configuration can be seen here:
+ jOOQ logs all SQL queries and fetched result sets to its internal DEBUG logger, which is implemented as an . By default, execute logging is activated in the . In order to see any DEBUG log output, put slf4j on jOOQ's classpath or module path along with their respective configuration. A sample log4j configuration can be seen here:
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-]]>
+
+
+
+
+
+]]>
With the above configuration, let's fetch some data with jOOQ