Logger vs. System.out.println

前端 未结 6 1761
挽巷
挽巷 2020-12-08 01:59

I\'m using the PMD plugin for eclipse and it gives me an error when using System.out.println() with the explanation:

System.(out|err).pri

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 02:50

    System.out.println is not good to use as it cannot be configured. In stead, Logger can be configured to log on various levels. It has whole lot of other features.

提交回复
热议问题