Re: asl and the console
Re: asl and the console
- Subject: Re: asl and the console
- From: Greg Parker <email@hidden>
- Date: Fri, 2 Jul 2010 10:00:47 -0700
On Jul 2, 2010, at 8:07 AM, Alexander von Below wrote:
> When my App is sending messages with asl_log(3) , I only see messages in the Console between the levels of ASL_LEVEL_NOTICE and ASL_LEVEL_EMERG. So far, so good. Normal users should not be swamped with messages of level ASL_LEVEL_INFO or ASL_LEVEL_DEBUG.
>
> But how can I as a developer, or even a user, query the console in such a way that these levels are included? I tried setting up a little query in the Console.app GUI, but still, I got nothing less important than Notice.
ASL has two points that filter out low-priority logs: the client side and the server side. Any log must pass both filters in order to be saved. Logs caught by these filters are thrown away.
On the client side, you can use asl_set_filter() to allow low-priority logs to go out. The default filter drops INFO and DEBUG.
On the server side, you can use `syslog -c` to manipulate the server-side filters. There are several filters on the server side. I don't know what the defaults are there.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden