java - Where the log stream goes? -


when app started, not console ui icon, standard stream goes, mean can example see log? plain old system.out directs "default" ?

as angus said, without console don't output.

once you've launched application gui, can set system.out field log destination (rather tty or console), using system.setout. in way can write file passing:

system.setout(new printstream(path_to_a_file)); 

however, not advised.

the best thing can use logging framework such log4j or slf4j, , perform logging (to file, network host or console) way.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -