In Eclipse, if you're using m2eclipse or configure it as such, src/test/resources should be on your classpath. If it is, it contains a log4j.properties file that will Do The Right Thing(tm). If you want an example, I think there's one in flume-core's src/test/resources. Note that the reason it's not in src/main/resources is because it would then wind up in the jar and wouldn't be possible to configure the settings at runtime (or at least not easily).
On Tue, Jun 19, 2012 at 7:58 AM, Patrick Wendell <[email protected]> wrote: > When I try to run the flume node Application.java in Eclipse it fails with > a log4j configuration error: > > log4j:WARN No appenders could be found for logger > (org.apache.flume.node.Application). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for > more info. > > My log4j chops are a little rusty - what is the best way to tell flume to > log everything to the console? > > - Patrick > -- Eric Sammer twitter: esammer data: www.cloudera.com
