anchor.diff:  			<version>1.7.22</version>
   		</dependency>
   		<dependency>
  -			<groupId>org.slf4j</groupId>
  -			<artifactId>slf4j-api</artifactId>
  -			<version>1.7.22</version>
  -		</dependency>
  -		<dependency>
  -			<groupId>org.slf4j</groupId>
  -			<artifactId>slf4j-log4j12</artifactId>
  -			<version>1.7.22</version>
  -		</dependency>
  -		<dependency>
  -			<groupId>log4j</groupId>
  -			<artifactId>log4j</artifactId>
  -			<version>1.2.17</version>
  +			<groupId>org.apache.logging.log4j</groupId>
  +			<artifactId>log4j-slf4j-impl</artifactId>
  +			<version>2.7</version>
  +		</dependency>
  +		<dependency>
  +			<groupId>org.apache.logging.log4j</groupId>
  +			<artifactId>log4j-api</artifactId>
  +			<version>2.7</version>
  +		</dependency>
  +		<dependency>
  +			<groupId>org.apache.logging.log4j</groupId>
  +			<artifactId>log4j-core</artifactId>
  +			<version>2.7</version>
   		</dependency>
   	</dependencies>
   ----
  
positive.code: [source,xml,indent=0]
  [subs="verbatim,quotes,attributes"]
  ----
  <dependencies>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>2.7</version>
    </dependency>
  </dependencies>
  ----
  
  Here is an example log4j2.xml for logging to the console:
  
  [source,xml,indent=0]
  [subs="verbatim,quotes,attributes"]
  ----
  <?xml version="1.0" encoding="UTF-8"?>
  <Configuration status="WARN">
    <Appenders>
      <Console name="Console" target="SYSTEM_OUT">
        <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
      </Console>
    </Appenders>
    <Loggers>
      <Logger name="org.springframework.beans.factory" level="DEBUG"/>
      <Root level="error">
        <AppenderRef ref="Console"/>
      </Root>
    </Loggers>
  </Configuration>
  ----
  
  
  [[overview-logging-log4j]]
  ===== Using Log4J 1.x
  To make http://logging.apache.org/log4j/1.2/[Log4j 1.x] work with the default JCL
  dependency (`commons-logging`) all you need to do is put Log4j on the classpath, and
  provide it with a configuration file (`log4j.properties` or `log4j.xml` in the root of
  the classpath). So for Maven users this is your dependency declaration:
  
  
  [source,xml,indent=0]
  [subs="verbatim,quotes,attributes"]
  ----
  	<dependencies>
  		<dependency>
  			<groupId>org.springframework</groupId>
  			<artifactId>spring-core</artifactId>
  			<version>{spring-version}</version>
  		</dependency>
  		<dependency>
  			<groupId>log4j</groupId>
  			<artifactId>log4j</artifactId>
  			<version>1.2.17</version>
  		</dependency>
  	</dependencies>
  ----
  
  And here's a sample log4j.properties for logging to the console:
  
  [literal]
  [subs="verbatim,quotes"]
  ----
  log4j.rootCategory=INFO, stdout
  
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{2}:%L - %m%n
  
  log4j.category.org.springframework.beans.factory=DEBUG
  ----
  
  [[overview-native-jcl]]
  
negative.code: API, then you have a single place to configure and manage logging.
  
  A common choice might be to bridge Spring to SLF4J, and then provide explicit binding
  from SLF4J to Log4j. You need to supply several dependencies (and exclude the existing
  `commons-logging`): the bridge, the SLF4J implementation for Log4j, and the Log4j
  implementation itself. In Maven you would do that like this:
  
  [source,xml,indent=0]
  [subs="verbatim,quotes,attributes"]
  