Skip to content
Snippets Groups Projects
Commit bcda93f2 authored by Keith Donald's avatar Keith Donald Committed by Mic
Browse files

Slf4j update

parent 57e17d32
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
<version>1.0.0-SNAPSHOT</version>
<properties>
<spring.version>3.0.0.RELEASE</spring.version>
<slf4j.version>1.5.6</slf4j.version>
<slf4j.version>1.5.10</slf4j.version>
</properties>
<dependencies>
......
package org.springframework.samples.petclinic.aspects;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Aspect to illustrate Spring-driven load-time weaving.
......@@ -16,7 +16,7 @@ import org.aspectj.lang.annotation.Pointcut;
@Aspect
public abstract class AbstractTraceAspect {
private static final Log logger = LogFactory.getLog(AbstractTraceAspect.class);
private static final Logger logger = LoggerFactory.getLogger(AbstractTraceAspect.class);
@Pointcut
public abstract void traced();
......
......@@ -8,9 +8,8 @@ import java.util.List;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.EmptyResultDataAccessException;
......@@ -57,7 +56,7 @@ import org.springframework.transaction.annotation.Transactional;
@ManagedResource("petclinic:type=Clinic")
public class SimpleJdbcClinic implements Clinic, SimpleJdbcClinicMBean {
private final Log logger = LogFactory.getLog(getClass());
private final Logger logger = LoggerFactory.getLogger(getClass());
private SimpleJdbcTemplate simpleJdbcTemplate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment