0

In scout eclipse application I try to configure Log4j.

When I start server I get :

log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

I have file log4j.properties and I put it in folder witch is in class path.

enter image description here

Where do I need to put this file so that application can read from it ?

Marko

Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97

1 Answers1

0

I got the same issue a few days ago. I also use maven. The warnings are thrown by an object which uses this logging dependencies. There are several ways to log. For me it worked with adding following dependecies to my POM.xml

<dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.12</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.12</version>
        </dependency>
Jonas Audenaert
  • 160
  • 2
  • 16