Redirect System.out and System.err to slf4j
问题 I needed to redirect System.out/err.println outputs to slf4j. I know that this is not the way to do logging properly but there is an external library, which logs to System.out 回答1: You can use sysout-over-slf4j. The sysout-over-slf4j module allows a user to redirect all calls to System.out and System.err to an SLF4J defined logger with the name of the fully qualified class in which the System.out.println (or similar) call was made, at configurable levels. If you are not using Maven, download