I have this scala application which is very simple . All that it does is initializes a logger and does a logger.info("Hello"). I have a log4j.properties file in the class path that has the following settings
# Root logger option
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
However, when I try to run the application. I get the error log4j:WARN No appenders could be found for logger (app.TestApp$). log4j:WARN Please initialize the log4j system properly.
What am I missing ? However, I get the logs printed out if I have hadoop-core.jar in the classpath (yeah there is a log4j inside it as well)