I\'m trying to configure log4j to log messages to a file. Right now, the file does get created with the name I provide, but the logs are not written to the file. My code:>
I have the same problem, and i solved it. When I changed level form INFO to DEBUG in properties file - line:
log4j.rootLogger=DEBUG, file, stdout
and than I wrote in script:
logger.debug("Hello world");
everything was saved in file.