Same here. Even been to the WWDC 2008 Labs. No dice.
According to the Apple engineers the code was OK.

Wondering whether the Console.app uses some private API.

On Fri, Mar 20, 2009 at 17:22, Luke the Hiesterman <luket...@apple.com> wrote:
> I fought with ASL slowness in trying to develop my app last year. That
> project currently sits on the backburner largely because of performance
> problems I also encountered with ASL. I did fine reading once, but as soon
> as I started reading every second or couple of seconds, syslogd cpu usage
> went through the roof and life became awful. I wish I had a solution for
> you, but instead I simply say, "I feel your pain."
>
> Luke
>
> On Mar 20, 2009, at 2:08 AM, Gerriet M. Denkmann wrote:
>
>>
>> I am trying to access the Apple System Log facility.
>>
>> char *lastMessageId = "765123";
>>
>> aslmsg q = asl_new(ASL_TYPE_QUERY);
>> asl_set_query(q, kAslMessageId, lastMessageId, ASL_QUERY_OP_GREATER |
>> ASL_QUERY_OP_NUMERIC );
>> aslresponse r = asl_search( NULL, q);   // r will contain all messages
>> after 765123
>>
>> Works fine, if the asl database is small. But with about 200 000 messages
>> in asl, asl_search() will take about a dozen seconds.
>>
>> 1. question: is there any faster method to get a list of asl messages?
>>
>> 2. question: is there a way to make Xcode 3.1.1 print NSLog() messages
>> ONLY into it's own Console and NOT also into the asl-console (like the good
>> old Xcode 2.x did)?
>>
>> Kind regards,
>>
>> Gerriet.
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com
>>
>> This email sent to luket...@apple.com
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/tcurdt%40vafer.org
>
> This email sent to tcu...@vafer.org
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to