Hauke Gulich [
http://community.jboss.org/people/haukegulich] created the discussion
"Log4J Configuration Problems with JBoss 7.0.1 Final"
To view the discussion, visit:
http://community.jboss.org/message/626989#626989
--------------------------------------------------------------
Hello everyone,
after getting used to the new JBoss 7 (I come from JBoss 4) I managed to get everything to
work, exept Log4j.
In my classes I do this:
public class JMSSender {
private static final Logger logger = Logger.getLogger(JMSSender.class);
...
public void something() {
logger.info("Something");
}
But I get this message
21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final
(
http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1)
log4j:WARN No appenders could be found for logger (de.hauke.client.jms.JMSSender).
21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final
(
http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1)
log4j:WARN Please initialize the log4j system properly.
21:35:10,396 ERROR Log4J Configuration Problems with JBoss 7.0.1 Final
(
http://community.jboss.org/message/626989#626989#626989/stderr) (http--127.0.0.1-8080-1)
log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
I am using maven and I put this dependency to my project
| | | <dependency> |
| | | | <groupId>log4j</groupId> |
| | | | <artifactId>log4j</artifactId> |
| | | | <version>1.2.16</version> |
| | | </dependency> |
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/626989#626989]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]