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
Post a Comment