Skip to content

Commit 7b26ea3

Browse files
committed
Fixes #158. Use namespace for cache logging.
1 parent ddc48a7 commit 7b26ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/cache/decorators/LoggingCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323

2424
public class LoggingCache implements Cache {
2525

26-
private static final Log log = LogFactory.getLog(LoggingCache.class);
27-
26+
private Log log;
2827
private Cache delegate;
2928
protected int requests = 0;
3029
protected int hits = 0;
3130

3231
public LoggingCache(Cache delegate) {
3332
this.delegate = delegate;
33+
this.log = LogFactory.getLog(getId());
3434
}
3535

3636
@Override

0 commit comments

Comments
 (0)