java - System.out, System.err : often temporary debugging statements warning -


While writing a very simple multi-platform console application in Netbeans, I have seen a consistent warning on the statement System.out.

Println () and System.err.println (), which are often temporary debugging statements.

And in the description of Netbeans wiki, it tells

this is often a temporary debugging statement, and perhaps either removed from the output code, or by a more robust logging feature Should be replaced.

Why it is this and what should I use to print the message after that in the user's powerful console application view

I'm using to inform the user using many of these statements, the argument is not valid, or some access denied exception exists, etc.

Any suggestions will help you

If your application will update and / or become a part of the other, complex system, E System.out and System.err calls will be less convenient than the implemented logging subsystem in your application.

And it would be necessary to re-write these parts of code to provide a more consistent logging picture for an administrator / end-user.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -