[slf4j-dev] svn commit: r535 - slf4j/trunk/tests/src/java/org/slf4j
ceki at slf4j.org
ceki at slf4j.org
Sat Feb 4 17:02:04 CET 2006
Author: ceki
Date: Sat Feb 4 17:02:03 2006
New Revision: 535
Modified:
slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
Log:
added tests for Marker support
Modified: slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java (original)
+++ slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java Sat Feb 4 17:02:03 2006
@@ -48,16 +48,10 @@
super(arg0);
}
- /*
- * @see TestCase#setUp()
- */
protected void setUp() throws Exception {
super.setUp();
}
- /*
- * @see TestCase#tearDown()
- */
protected void tearDown() throws Exception {
super.tearDown();
}
@@ -104,7 +98,15 @@
logger.info(null, e);
logger.warn(null, e);
logger.error(null, e);
-
+ }
+
+ public void testMarker() {
+ Logger logger = LoggerFactory.getLogger("testMarker");
+ Marker blue = MarkerFactory.getMarker("BLUE");
+ logger.debug(blue, "hello");
+ logger.info(blue, "hello");
+ logger.warn(blue, "hello");
+ logger.error(blue, "hello");
}
}
More information about the slf4j-dev
mailing list