I'm very new to java and spring and I'm currently trying to enhance a set of java code by using eclipse 3.1.1 and Springframework 3.0.5
however, i'm stuck at this error :
log4j:WARN No appenders could be found for logger (org.springframework.core.io.support.PathMatchingResourcePatternResolver).
log4j:WARN Please initialize the log4j system properly.
I've defined logger in all of my classes that involves with logger.debug for example , in my main class:
i don't really understand or knowing how to use logger as I did not write the previous code myself.
does the " static private log logger = " means that it careates classes when it run ?
I've installed log4j.jar and spring-core.jar but it doesn't help
anyone has any idea how to solve or what might caused the problem ?
any help would be much approciated.
Exactly. You get that warning whenever you are missing the log4j.properties configuration file. It should be in the root of your classpath. Regarding what goes in it, you should Google log4j.properties and you will find links to valid entries/tutorials and documentation to help you out.
Basically an appender is one that appends to something. For instance a txt file, or in a database, or in the console. So log message will appear where the appender tells it to put it.
There are categories, these are your packages that will be logged and at what logging level.
Also, this is a log4j question, not a Spring related question.