<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Standard Orbit &#187; code</title>
	<atom:link href="http://standardorbit.net/blog/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://standardorbit.net/blog</link>
	<description></description>
	<lastBuildDate>Thu, 10 Jun 2010 04:42:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SOLogger: a Cocoa ASL Logging framework</title>
		<link>http://standardorbit.net/blog/2009/08/sologger-a-cocoa-asl-logging-framework/</link>
		<comments>http://standardorbit.net/blog/2009/08/sologger-a-cocoa-asl-logging-framework/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 23:26:16 +0000</pubDate>
		<dc:creator>Bill</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Shiny]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://standardorbit.net/blog/?p=44</guid>
		<description><![CDATA[I spent some time recently putting together a Cocoa interface to the built-in Apple System Logging (ASL) facility.
Following Peter Hosey&#8217;s excellent blog series on ASL and some other tidbits on Cocoa-Dev, I fashioned small and simple Cocoa framework for integrating ASL&#8217;s multi-leveled logging into your project.
&#8212;
#import &#60;SOLogger/SOLogger.h&#62;
SOLogger *logger;
logger = [SOLogger loggerForFacility: @"com.example.MyApp" options:ASL_OPT_STDERR];
[logger debug:@"A debugging [...]]]></description>
			<content:encoded><![CDATA[<p>I spent some time recently putting together a Cocoa interface to the built-in Apple System Logging (ASL) facility.</p>
<p>Following <a href="http://boredzo.org/blog/archives/2008-01-20/why-asl">Peter Hosey&#8217;s excellent blog series on ASL</a> and some other tidbits on Cocoa-Dev, I fashioned small and simple Cocoa framework for integrating ASL&#8217;s multi-leveled logging into your project.</p>
<p>&#8212;<br />
#import &lt;SOLogger/SOLogger.h&gt;</p>
<p>SOLogger *logger;</p>
<p>logger = [SOLogger loggerForFacility: @"com.example.MyApp" options:ASL_OPT_STDERR];</p>
<p>[logger debug:@"A debugging note on: %@", [NSDate date]];</p>
<p>[logger info:@"We just did something."];<br />
[logger notice:@"That's going to leave a mark"];<br />
[logger warning:@"WTF?"];<br />
[logger alert:@"WTF!"];<br />
[logger critical:@"OMG"];<br />
[logger panic:@"OMG WTF!"];<br />
&#8212;</p>
<p>An interesting feature of SOLogger (courtesy of ASL) is that you can create separate loggers for subsystems in your code, potentially logging them to separate destinations.</p>
<p>I host the <a href="http://bitbucket.org/billgarrison/sologger/" target="_blank">SOLogger project on Bitbucket</a> with a BSD License.</p>
<p>Check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://standardorbit.net/blog/2009/08/sologger-a-cocoa-asl-logging-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
