-
1. Re: How to use log4j and Seam 3 logging on JBoss 7
shane.bryzak Sep 1, 2011 7:20 AM (in response to hantsy)Seam logging simply delegates to the underlying logging API, so if you're using log4j it will just delegate the logging calls to it, using whichever configuration you have provided.
-
2. Re: How to use log4j and Seam 3 logging on JBoss 7
hantsy Sep 2, 2011 10:50 PM (in response to hantsy)I added log4j to dependencies, and there is a log4j configuration in my project, it does not work.
Additional configuration is needed? -
3. Re: How to use log4j and Seam 3 logging on JBoss 7
hantsy Sep 2, 2011 10:52 PM (in response to hantsy)By the way, I injected @Logger(from Seam solder logging) in my code.
-
4. Re: How to use log4j and Seam 3 logging on JBoss 7
hantsy Sep 5, 2011 8:27 AM (in response to hantsy)Any help here...
-
5. Re: How to use log4j and Seam 3 logging on JBoss 7
teacurran Dec 22, 2011 3:50 PM (in response to hantsy)Did you ever work this out?
I've found that if I put log4j in my app's lib folder and don't depend on the one from as7 then it will start up, but it will only log messages called through log4j's apis. The only solution I can think of right now is to use straight log4j rather than the solder logging interface, but as you know that isn't ideal.
-
6. Re: How to use log4j and Seam 3 logging on JBoss 7
lightguard Dec 23, 2011 12:30 AM (in response to hantsy)I passed this on to our logging experts, I hope they are able to respond soon.
-
7. Re: How to use log4j and Seam 3 logging on JBoss 7
meetoblivion Dec 23, 2011 7:09 PM (in response to hantsy)How are you deploying your application? AS6? AS7?
-
8. Re: How to use log4j and Seam 3 logging on JBoss 7
marx3 Dec 30, 2011 3:12 AM (in response to hantsy)I don't use injected logger because such logger can't be use everywhere, for example in constructor, so it's useless. I use slf4j as my abstraction layer, use it's methods to log, and delegate logging to jboss logging. Additionally I exclude completely log4j from project.
Like this:
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.jboss.slf4j</groupId> <artifactId>slf4j-jboss-logmanager</artifactId> <version>1.0.0.GA</version> <scope>compile</scope> </dependency>