Logger vs. System.out.println

Posted by Amir Rachum on Stack Overflow See other posts from Stack Overflow or by Amir Rachum
Published on 2010-05-01T14:44:43Z Indexed on 2010/05/01 14:47 UTC
Read the original article Hit count: 254

Filed under:
|
|

Hi all,

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).print is used, consider using a logger.

My question is - What is a Logger? How is it used to print to the screen? Why is it better?

Thanks.

© Stack Overflow or respective owner

Related posts about pmd

Related posts about eclipse