Skip to content

Commit 7f8d791

Browse files
committed
HHH-8865 - Create topical guide for logging
(cherry picked from commit fa4f085)
1 parent 61c66f1 commit 7f8d791

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

documentation/src/main/asciidoc/topical/logging/Logging.adoc

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,19 @@ for example, if you have both JBoss LogManager and Slf4j available your classpa
2323
as it has the "higher precedence".
2424

2525
This can sometimes lead to an unwanted logging set up to be used. In such cases, JBoss Logging provides for you to
26-
tell it specifically which provider to use.
26+
tell it specifically which provider to use and circumvent the discovery process just described. It allows 2 different
27+
mechanisms for this:
2728

29+
. First, JBoss Logging will look for a *System* setting with the key `org.jboss.logging.provider`, which can be set to
30+
one of the following values:
2831

29-
=== Provider setting
32+
* jboss
33+
* jdk
34+
* log4j2
35+
* log4j
36+
* slf4j
3037

31-
JBoss Logging will first look for a setting with the key `org.jboss.logging.provider`, which can be set to one of the
32-
following values:
33-
34-
. jboss
35-
. jdk
36-
. log4j2
37-
. log4j
38-
. slf4j
39-
40-
41-
=== JDK Service
42-
43-
Next, JBoss Logging will look for a JDK service (see javadocs for +java.util.ServiceLoader+ for details) for its
38+
. Next, JBoss Logging will look for a JDK service (see javadocs for +java.util.ServiceLoader+ for details) for its
4439
"provider" contract (+org.jboss.logging.Provider+). If multiple are available, it will use the first one returned by
4540
the ClassLoader.
4641

0 commit comments

Comments
 (0)