<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Next week: Apple System Logger</title>
	<atom:link href="http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/feed" rel="self" type="application/rss+xml" />
	<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger</link>
	<description>The personal weblog of Peter Hosey.</description>
	<lastBuildDate>Wed, 09 May 2012 18:26:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-160501</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Sun, 03 Feb 2008 13:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-160501</guid>
		<description>&lt;blockquote&gt;Practical questions I&#039;d have for log files would be: How can I get the information I want quickly and without much effort. I guess the architecture could actually deliver on that, but I am missing the single button click way to get all log messages of a process that just crashed and any other potentially related log messages around it.&lt;/blockquote&gt;

The API is more general than that. There isn&#039;t a single easy function for every possible use of the API, just as there isn&#039;t in any other Apple API; you build your use of it from its component functions—in this case, a couple calls to &lt;code&gt;asl_search&lt;/code&gt;, and a loop that calls the &lt;code&gt;aslresponse&lt;/code&gt; functions.

It wouldn&#039;t be hard to write a function that:

&lt;ul&gt;
&lt;li&gt;creates a query for &lt;code&gt;ASL_KEY_SENDER == process_name&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;searches for it&lt;/li&gt;
&lt;li&gt;calls a function on every message from the response&lt;/li&gt;
&lt;li&gt;creates a query for &lt;code&gt;ASL_KEY_MSG contains process_name&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;searches for it&lt;/li&gt;
&lt;li&gt;calls a function on every message from the response&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;What should I do when the syslogd process starts running amok and when killing it just respawns it to a new amok run. What should I do then?&lt;/blockquote&gt;

That&#039;s a sysadmin problem. This series was primarily about the API, with information about the daemon provided as context for parts of the API (e.g., &lt;code&gt;ASL_OPT_NO_DELAY&lt;/code&gt;).

To answer your question: Try using launchctl to disable it.</description>
		<content:encoded><![CDATA[<blockquote cite="http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-"><p>Practical questions I&#8217;d have for log files would be: How can I get the information I want quickly and without much effort. I guess the architecture could actually deliver on that, but I am missing the single button click way to get all log messages of a process that just crashed and any other potentially related log messages around it.</p>
</blockquote>
<p>The API is more general than that. There isn&#8217;t a single easy function for every possible use of the API, just as there isn&#8217;t in any other Apple API; you build your use of it from its component functions—in this case, a couple calls to <code>asl_search</code>, and a loop that calls the <code>aslresponse</code> functions.</p>
<p>It wouldn&#8217;t be hard to write a function that:</p>
<ul>
<li>creates a query for <code>ASL_KEY_SENDER == process_name</code></li>
<li>searches for it</li>
<li>calls a function on every message from the response</li>
<li>creates a query for <code>ASL_KEY_MSG contains process_name</code></li>
<li>searches for it</li>
<li>calls a function on every message from the response</li>
</ul>
<blockquote cite="http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-"><p>What should I do when the syslogd process starts running amok and when killing it just respawns it to a new amok run. What should I do then?</p>
</blockquote>
<p>That&#8217;s a sysadmin problem. This series was primarily about the API, with information about the daemon provided as context for parts of the API (e.g., <code>ASL_OPT_NO_DELAY</code>).</p>
<p>To answer your question: Try using launchctl to disable it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-160472</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Sun, 03 Feb 2008 12:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-160472</guid>
		<description>I&#039;m afraid this didn&#039;t help me too much. I mostly don&#039;t care about logs in such an extent that I&#039;d see a big benefit in this infrastructure, so in the end it seems to be for the pleasure of the OS or something.

Practical questions I&#039;d have for log files would be: How can I get the information I want quickly and without much effort. I guess the architecture could actually deliver on that, but I am missing the single button click way to get all log messages of a process that just crashed and any other potentially related log messages around it.

Even more painfully, I find that the whole logging architecture just seems overly complicated. What should I do when the syslogd process starts running amok and when killing it just respawns it to a new amok run. What should I do then? Pausing the syslogd process doesn&#039;t seem a good idea as Apple&#039;s clever libraries seem to ensure that some applications just stall as a consequence. From what I can tell only a restart might solve the problem. Which is much more of a downside to this overly &#039;clever&#039; bit of engineering than all the upsides you mention present. After all I mainly want to actually _use_ my computer to do things rather than to have it store logs in a clever way.

I&#039;m sure there are environments where clever logging is essential. Servers or something perhaps. But on my own system I have other priorities - and, even after reading the manuals and your extra explanations, remain less than impressed.</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid this didn&#8217;t help me too much. I mostly don&#8217;t care about logs in such an extent that I&#8217;d see a big benefit in this infrastructure, so in the end it seems to be for the pleasure of the OS or something.</p>
<p>Practical questions I&#8217;d have for log files would be: How can I get the information I want quickly and without much effort. I guess the architecture could actually deliver on that, but I am missing the single button click way to get all log messages of a process that just crashed and any other potentially related log messages around it.</p>
<p>Even more painfully, I find that the whole logging architecture just seems overly complicated. What should I do when the syslogd process starts running amok and when killing it just respawns it to a new amok run. What should I do then? Pausing the syslogd process doesn&#8217;t seem a good idea as Apple&#8217;s clever libraries seem to ensure that some applications just stall as a consequence. From what I can tell only a restart might solve the problem. Which is much more of a downside to this overly &#8216;clever&#8217; bit of engineering than all the upsides you mention present. After all I mainly want to actually _use_ my computer to do things rather than to have it store logs in a clever way.</p>
<p>I&#8217;m sure there are environments where clever logging is essential. Servers or something perhaps. But on my own system I have other priorities &#8211; and, even after reading the manuals and your extra explanations, remain less than impressed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Johnson</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156943</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Sun, 20 Jan 2008 18:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156943</guid>
		<description>ssp: I wrote my comment before I saw Peter&#039;s.  I thought it was unfair to ask him to do Apple&#039;s job, but it turns out he may have done it anyway!  (Hard to tell from the teaser, though.)</description>
		<content:encoded><![CDATA[<p>ssp: I wrote my comment before I saw Peter&#8217;s.  I thought it was unfair to ask him to do Apple&#8217;s job, but it turns out he may have done it anyway!  (Hard to tell from the teaser, though.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156878</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Sun, 20 Jan 2008 12:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156878</guid>
		<description>Peter: Looking forward to all that.  (I&#039;m not too happy with manipulating launchd files which I may find overwritten by some update. Is there a way to achieve the same through defaults?) 

Curious about those non-obvious Console options. I&#039;d be surprised if you managed to find sane and fast temporal navigation somewhere in there.

Jeff: filed those issues long ago.</description>
		<content:encoded><![CDATA[<p>Peter: Looking forward to all that.  (I&#8217;m not too happy with manipulating launchd files which I may find overwritten by some update. Is there a way to achieve the same through defaults?) </p>
<p>Curious about those non-obvious Console options. I&#8217;d be surprised if you managed to find sane and fast temporal navigation somewhere in there.</p>
<p>Jeff: filed those issues long ago.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake C.</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156794</link>
		<dc:creator>Blake C.</dc:creator>
		<pubDate>Sun, 20 Jan 2008 01:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156794</guid>
		<description>No worries about the man page, Peter- no harm, no foul :) I have no experience with asl and I can&#039;t wait to see what you have for us...</description>
		<content:encoded><![CDATA[<p>No worries about the man page, Peter- no harm, no foul :) I have no experience with asl and I can&#8217;t wait to see what you have for us&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156775</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Sat, 19 Jan 2008 23:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156775</guid>
		<description>Console isn&#039;t bad. It could be better, but it does offer more power than is obvious at first glance.

I won&#039;t say more now, though, because I don&#039;t want to give away spoilers. ☺</description>
		<content:encoded><![CDATA[<p>Console isn&#8217;t bad. It could be better, but it does offer more power than is obvious at first glance.</p>
<p>I won&#8217;t say more now, though, because I don&#8217;t want to give away spoilers. ☺</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Johnson</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156759</link>
		<dc:creator>Jeff Johnson</dc:creator>
		<pubDate>Sat, 19 Jan 2008 21:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156759</guid>
		<description>ssp: I guess I want to say that an ASL viewer that&#039;s far better than Console.app would be much better than mere programming examples ;)
&lt;a href=&quot;https://bugreport.apple.com/&quot; rel=&quot;nofollow&quot;&gt;https://bugreport.apple.com/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>ssp: I guess I want to say that an ASL viewer that&#8217;s far better than Console.app would be much better than mere programming examples ;)<br />
<a href="https://bugreport.apple.com/" rel="nofollow">https://bugreport.apple.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156758</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Sat, 19 Jan 2008 21:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156758</guid>
		<description>ssp: syslogd enforces a size limit on the ASL database. If it grows past 25,600,000 bytes, syslogd prunes the oldest messages. You can raise (or lower) the size limit by adding a -db_max argument to syslogd&#039;s arguments in its launchd plist.

As for decent UIs for searching the logs… stay tuned. ☺</description>
		<content:encoded><![CDATA[<p>ssp: syslogd enforces a size limit on the ASL database. If it grows past 25,600,000 bytes, syslogd prunes the oldest messages. You can raise (or lower) the size limit by adding a -db_max argument to syslogd&#8217;s arguments in its launchd plist.</p>
<p>As for decent UIs for searching the logs… stay tuned. ☺</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger/comment-page-1#comment-156756</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Sat, 19 Jan 2008 20:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger#comment-156756</guid>
		<description>An interesting question to have answered would be what the advantages of this system are. In theory it may be all great and fancy. But my impression so far, particularly for replacing system.log is that it&#039;s much less reliable, keen on losing entries and keeping less of a backlog. And with not being a simple text file, having a decent UI for it (search by date!) seems important as well. If some process runs mad and writes thousand of messages to the log, for example, it&#039;s quite a hassle to get a view at older items.

I guess I want to say that an ASL viewer that&#039;s far better than Console.app would be much better than mere programming examples ;)</description>
		<content:encoded><![CDATA[<p>An interesting question to have answered would be what the advantages of this system are. In theory it may be all great and fancy. But my impression so far, particularly for replacing system.log is that it&#8217;s much less reliable, keen on losing entries and keeping less of a backlog. And with not being a simple text file, having a decent UI for it (search by date!) seems important as well. If some process runs mad and writes thousand of messages to the log, for example, it&#8217;s quite a hassle to get a view at older items.</p>
<p>I guess I want to say that an ASL viewer that&#8217;s far better than Console.app would be much better than mere programming examples ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.177 seconds -->

