D
D
Denis Knyazev2016-07-08 14:55:47
Java
Denis Knyazev, 2016-07-08 14:55:47

Why is it bad to output logs via System.out.print?

Very often where I stumble upon the fact that it is bad to use system.out.print for logs, but have you noticed any reasoned position?
Could not help me to understand this issue, share a link that I missed, etc.
Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kosarev, 2016-07-08
@axaxa_man

Because the use of loggers, unlike System.out, allows you to change logging levels or even turn it off on the fly. In general, there is no significant difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question