I'm trying to change the simple logger that Maven uses by default and change it for Log4j2.
I've tried adding the jars of the new logger to the Maven lib
but it did not work.
Does any one know how to migrate from the simple logger to a newest version of the logger?
Maven uses SLF4J API to log messages. By default, it uses
slf4j-simple
implementation. If you want to change this logging implementation, you just need to modify your Maven installation like this:slf4j-simple
jar from thelib
directory of your Maven installation (you might also want to rename it to.old
, in case you want to roll it back in the future)The configuration of the logger is then exactly the same as before (documented here).