HHH-8865 - Create topical guide for logging

(cherry picked from commit fa4f0850c3)
This commit is contained in:
Steve Ebersole 2014-01-16 11:37:20 -06:00
parent 61c66f1d2c
commit 7f8d791943
1 changed files with 10 additions and 15 deletions

View File

@ -23,24 +23,19 @@ for example, if you have both JBoss LogManager and Slf4j available your classpa
as it has the "higher precedence". as it has the "higher precedence".
This can sometimes lead to an unwanted logging set up to be used. In such cases, JBoss Logging provides for you to This can sometimes lead to an unwanted logging set up to be used. In such cases, JBoss Logging provides for you to
tell it specifically which provider to use. tell it specifically which provider to use and circumvent the discovery process just described. It allows 2 different
mechanisms for this:
. First, JBoss Logging will look for a *System* setting with the key `org.jboss.logging.provider`, which can be set to
one of the following values:
=== Provider setting * jboss
* jdk
* log4j2
* log4j
* slf4j
JBoss Logging will first look for a setting with the key `org.jboss.logging.provider`, which can be set to one of the . Next, JBoss Logging will look for a JDK service (see javadocs for +java.util.ServiceLoader+ for details) for its
following values:
. jboss
. jdk
. log4j2
. log4j
. slf4j
=== JDK Service
Next, JBoss Logging will look for a JDK service (see javadocs for +java.util.ServiceLoader+ for details) for its
"provider" contract (+org.jboss.logging.Provider+). If multiple are available, it will use the first one returned by "provider" contract (+org.jboss.logging.Provider+). If multiple are available, it will use the first one returned by
the ClassLoader. the ClassLoader.