• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
asl_search abysmally slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

asl_search abysmally slow


  • Subject: asl_search abysmally slow
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 20 Mar 2009 16:08:25 +0700


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: asl_search abysmally slow
      • From: Luke the Hiesterman <email@hidden>
  • Prev by Date: Re: NSCell with URL
  • Next by Date: Re: NSScrollView like iTunes
  • Previous by thread: Re: How do you store an NSArray as an attribute in a Core Data entity
  • Next by thread: Re: asl_search abysmally slow
  • Index(es):
    • Date
    • Thread