File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed
documentation/src/main/asciidoc/topical/logging Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,19 @@ for example, if you have both JBoss LogManager and Slf4j available your classpa
2323as it has the "higher precedence".
2424
2525This 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
4540the ClassLoader.
4641
You can’t perform that action at this time.
0 commit comments