最佳答案
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 Exception {
LOGGER.info("program started");
try {
// try body codes
} catch (Exception ex) {
LOGGER.info("program start-up failed.",ex);
}
}
however when the program starts or failed the information logged twice, any one can help me to find what could be the reason of that.