What's the difference between logging and printing to the console

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-05-16T09:49:19Z Indexed on 2010/05/16 9:50 UTC
Read the original article Hit count: 256

Filed under:
|

This is kind of a philosophical question.

Basically people often ask if I am logging - and since I am not a full time programmer, but someone who programs often but is actually more of a requirements analyst, I don't know all the best practices.

I use Java a lot so I often do things like

System.out.println()

What's the difference in theory between the two? Ultimately aren't I also logging? Esp, if I prefix my comments with something like "ERROR:" or "WARN:" ?

© Stack Overflow or respective owner

Related posts about logging

Related posts about philosophical