System.out.println on Mountain Lion
Mike Swingler
swingler at apple.com
Sat Jan 12 17:19:52 PST 2013
On Jan 12, 2013, at 2:35 AM, Paul Taylor <paul_t100 at fastmail.fm> wrote:
> On 12/01/2013 05:22, Kustaa Nyholm wrote:
>> On 11.1.2013 23.48, "Leonid Romanov" <leonid.romanov at oracle.com> wrote:
>>
>>>> The reported problem seems to not be an issue with output showing up in
>>>> a terminal window but
>>>> in the Console App. I'm not sure what the expected behavior for the
>>>> Console App and Java.
>> I seem to remember that this was discussed in java-dev at lists.apple.com
>> when Mountain Lion came out or there abouts and IIRC this is a system
>> wide (bad) design decision from Apple. I maybe wrong, just thought I'd
>> mention this.
>>
>> br Kusti
>>
> I've encountered this problem, before mountain lion if printed a stack trace or used system.out or system the information would come out on in the System Log, visible via the Console. With the release of Mountain Lion this ouput disappeared into the ether, I asked Mike Swingler and got a response about this on the Java-Apple mailing list but I dont remember getting an answer to why the behaviour had changed.
>
> Paul
As I recall (though I can't find any public documentation about this), the logging policy was changed in Mountain Lion to ignore ordinary inherited stdout/stderr, and to only log records into the ASL database that came through the ASL API (of which NSLog does use).
Regards,
Mike Swingler
Apple Inc.
More information about the macosx-port-dev
mailing list