Please sign in to comment.
Adding slf4j/log4j example for eap6
- Loading branch information...
Showing with 553 additions and 0 deletions.
- +6 −0 slf4jLog4jTest.jar/META-INF/MANIFEST.MF
- +5 −0 slf4jLog4jTest.jar/README.md
- +481 −0 slf4jLog4jTest.jar/build.xml
- BIN slf4jLog4jTest.jar/com/redhat/gss/TestEjb.class
- +31 −0 slf4jLog4jTest.jar/com/redhat/gss/TestEjb.java
- BIN slf4jLog4jTest.jar/dist/slf4jLog4jTest.jar
- +30 −0 slf4jLog4jTest.jar/log4j.xml
|@@ -0,0 +1,6 @@|
|+Ant-Version: Apache Ant 1.8.4|
|+Created-By: 1.7.0_06-icedtea-mockbuild_2012_08_31_14_28-b00 (Oracle Co|
|@@ -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.