I'm using the good old System.out.println
- approach to debug my Java application. Before I upgraded to Mac OS 10.8 this worked wonderfully. Now however my console wouldn't display anything. Apparently I'm not the first one to encounter this behavior - see http://www.mac-forums.com/forums/os-x-operating-system/280577-system-out-println-not-showing-console.html.
Does any of you guys know a way?
System.console()
returns null for me with mountain lion and java 6.
We have had to change our logging in our app to use log4j
to output to stdout
(which used to go to system.log prior to 10.8) AND produce our own log files in ~/Library/Logs
which can be seen in console.app under any version.
Doesn't appear to be a sandboxing issue as i'm not seeing any sandboxing errors. Prob more investigation needed to see what device is being handed to the jvm under 10.8. At a guess maybe its being handed /dev/null
for logging by mistake?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With