can't logs show on console while running unit tests. instead, see message every time run unit test -
log4j:warn no appenders found logger. log4j:warn please initialize log4j system properly. log4j:warn see http://logging.apache.org/log4j/1.2/faq.html#noconfig more info. log4j.properties contains -
log4j.rootlogger=info, stdout log4j.appender.stdout=org.apache.log4j.consoleappender i'm pretty sure needs configured in run configurations can't work. appreciate on this. thanks!
finally got work! added vm options -
-dlog4j.configuration=file:{path-to-properties-file}/log4j.properties as explained here 30thh.
i had added in default unit test configuration, wasn't being picked current configuration.
Comments
Post a Comment