I am using log4j to log error and other system information. but come of the info logged twice at INFO level.
public static void main(final String... args) throws
I had the same problem, and fixed by removing all appenders from the root logger. I don't know why, but solve my problem and I'm sharing:
// Root
rootLogger = Logger.getRootLogger();
rootLogger.removeAllAppenders(); // Solve my problem
// CSV
csvLogger = rootLogger.getLogger("csvLogger");
// Txt
txtLogger = rootLogger.getLogger("txtLogger");
Without this extra line, even setting additivity to false, whenever I log with my csvLogger or txtLogger it logs twice.