Browse files

Adding slf4j/log4j example for eap6

  • Loading branch information...
1 parent 6c10ca9 commit 148edaecc68d53eb605d6079365483d15194f722 @kylape committed Nov 7, 2012
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.8.4
+Created-By: 1.7.0_06-icedtea-mockbuild_2012_08_31_14_28-b00 (Oracle Co
+ rporation)
@@ -0,0 +1,5 @@
+##SLF4J via Log4J in EAP 6
+This deployment has a simple EJB with one `@PostConstruct`-annotated method. This EJB also has two loggers, one from SLF4J and the other from Log4J. The deployment contains a `log4j.xml` that defines a file appender to write all application logs to a file called `application.log`. The `@PostConstruct`-annotated method will log something using both the SLF4J and Log4J loggers, thus testing to see if both log messages end up in application.log as desired.
+This example will show how JBoss can configure complex logging requirments (e.g. SLF4J and Log4J in the same deployment) without the need for any special configuration or inclusion of additional libraries.
Oops, something went wrong.

0 comments on commit 148edae

Please sign in to comment.