Question: what is the difference between logger.info and logger.error?
Answer: When you have enabled the debug or any higher level in your configuration. It depends on which level you selected in your log4j configuration file. If your level is "info" (by default), logger. ... However, if your level is "debug", it will.