Redirect System.out.println to Log4J, while keeping class name information

前端 未结 2 1353
孤街浪徒
孤街浪徒 2020-12-09 06:36

I have some libraries that are calling System.out.println on me, I\'d like to redirect them through log4j or commons logging. But in particular I\'d like to keep the fully-q

2条回答
  •  抹茶落季
    2020-12-09 07:22

    If you can modify the source code, then have a look at the Eclipse Plugin Log4E. It provides a function to convert System.out.println into logger statements (and many other cool stuff dealing with logging).

提交回复
热议问题