File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/test/java/org/apache/ibatis/logging Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2012 the original author or authors.
2
+ * Copyright 2009-2013 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
import org .apache .ibatis .logging .commons .JakartaCommonsLoggingImpl ;
24
24
import org .apache .ibatis .logging .jdk14 .Jdk14LoggingImpl ;
25
25
import org .apache .ibatis .logging .log4j .Log4jImpl ;
26
+ import org .apache .ibatis .logging .log4j2 .Log4j2Impl ;
26
27
import org .apache .ibatis .logging .nologging .NoLoggingImpl ;
27
28
import org .apache .ibatis .logging .slf4j .Slf4jImpl ;
28
29
import org .apache .ibatis .logging .stdout .StdOutImpl ;
@@ -47,6 +48,14 @@ public void shouldUseLog4J() {
47
48
assertEquals (log .getClass ().getName (), Log4jImpl .class .getName ());
48
49
}
49
50
51
+ @ Test
52
+ public void shouldUseLog4J2 () {
53
+ LogFactory .useLog4J2Logging ();
54
+ Log log = LogFactory .getLog (Object .class );
55
+ logSomething (log );
56
+ assertEquals (log .getClass ().getName (), Log4j2Impl .class .getName ());
57
+ }
58
+
50
59
@ Test
51
60
public void shouldUseJdKLogging () {
52
61
LogFactory .useJdkLogging ();
You can’t perform that action at this time.
0 commit comments