<?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: Logging from FAME</title>
	<atom:link href="http://www.kelvinluck.com/2005/08/logging-from-fame/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kelvinluck.com/2005/08/logging-from-fame/</link>
	<description>a stroke of luck</description>
	<lastBuildDate>Thu, 02 Feb 2012 07:32:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Kelvin</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-67</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Thu, 10 Nov 2005 10:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-67</guid>
		<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Not sure where your confusion lies&#8230; The line:&lt;br /&gt;
&lt;br /&gt;
LogWrapper.getLog().addPublisher(new SOSLogPublisher(&#8220;myAppsName&#8221;));&lt;br /&gt;
&lt;br /&gt;
Adds a new SOSLogPublisher to the LuminicBox Log instance. The point of the LogWrapper class is just to make sure that their is only one Log instance and that you can always refer to the same Log instance from anywhere in your application (it is a Singleton)...&lt;br /&gt;
&lt;br /&gt;
The addConsolePublisher and addTracePublisher functions are just helper functions to add a LuminicBox ConsolePublisher (e.g. through LocalConnection to the &#8220;FlashInspector&#8221; swf) or TracePublisher (e.g. to the Flash IDE&#8217;s output panel). You could write a LogWrapper.addSOSLogPublisher function that looked like this if you liked:&lt;br /&gt;
&lt;br /&gt;
public function addSOSPublisher(appName:String, sosServer:String, sosPort:Number, maxDepth:Number)&lt;br /&gt;
{&lt;br /&gt;
_log.addPublisher(new com.kelvinluck.util.SOSLogPublisher(appName, sosServer, sosPort, maxDepth));&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
The end result is still the same &#8211; the SOSLogPublisher is added to the Log instance&#8230;&lt;br /&gt;
&lt;br /&gt;
Or do you mean that when you call:&lt;br /&gt;
&lt;br /&gt;
LogWrapper.getLog().error(&#8220;MY ERROR MESSAGE&#8221;); &lt;br /&gt;
&lt;br /&gt;
after the above initalisation nothing appears in your copy of SOS? If so, do you get any errors? Are you doing:&lt;br /&gt;
&lt;br /&gt;
import com.kelvinluck.util.SOSLogPublisher;&lt;br /&gt;
&lt;br /&gt;
At the top of your class?&lt;br /&gt;
&lt;br /&gt;
Hope that helps :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Not sure where your confusion lies&#8230; The line:</p>
<p>LogWrapper.getLog().addPublisher(new SOSLogPublisher(&#8220;myAppsName&#8221;));</p>
<p>Adds a new SOSLogPublisher to the LuminicBox Log instance. The point of the LogWrapper class is just to make sure that their is only one Log instance and that you can always refer to the same Log instance from anywhere in your application (it is a Singleton)...</p>
<p>The addConsolePublisher and addTracePublisher functions are just helper functions to add a LuminicBox ConsolePublisher (e.g. through LocalConnection to the &#8220;FlashInspector&#8221; swf) or TracePublisher (e.g. to the Flash IDE&#8217;s output panel). You could write a LogWrapper.addSOSLogPublisher function that looked like this if you liked:</p>
<p>public function addSOSPublisher(appName:String, sosServer:String, sosPort:Number, maxDepth:Number)<br />
{<br />
_log.addPublisher(new com.kelvinluck.util.SOSLogPublisher(appName, sosServer, sosPort, maxDepth));<br />
}</p>
<p>The end result is still the same &#8211; the SOSLogPublisher is added to the Log instance&#8230;</p>
<p>Or do you mean that when you call:</p>
<p>LogWrapper.getLog().error(&#8220;MY ERROR MESSAGE&#8221;); </p>
<p>after the above initalisation nothing appears in your copy of SOS? If so, do you get any errors? Are you doing:</p>
<p>import com.kelvinluck.util.SOSLogPublisher;</p>
<p>At the top of your class?</p>
<p>Hope that helps :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-66</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 10 Nov 2005 05:02:16 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-66</guid>
		<description>Ok, in trying to figure out a solution to our logging, I took a look at this solution.  I&#8217;m not sure things are working quite as you suspect they are.  I&#8217;m using the wrapper to initiate and establish a connection to SOS as you describe, however:&lt;br /&gt;
&lt;br /&gt;
LogWrapper.getInstance().init();&lt;br /&gt;
LogWrapper.getLog().addPublisher(new SOSLogPublisher(&#8220;myAppsName&#8221;));&lt;br /&gt;
&lt;br /&gt;
does not establish a publisher through your wrapper&#8230; am I missing something?&lt;br /&gt;
&lt;br /&gt;
It doesn&#8217;t appear as though you ever use the .addConsolePublisher or .addTracePublisher functions that you built into your utility class.  getLog() returns a logger, so I imported LuminicBox.Log.Logger and set a static var equal to LogWrapper.getLog() to clean up some of my code, but I noticed that when I&#8217;m adding publishers I&#8217;m actually doing so through the LuminicBox classes.</description>
		<content:encoded><![CDATA[<p>Ok, in trying to figure out a solution to our logging, I took a look at this solution.  I&#8217;m not sure things are working quite as you suspect they are.  I&#8217;m using the wrapper to initiate and establish a connection to SOS as you describe, however:</p>
<p>LogWrapper.getInstance().init();<br />
LogWrapper.getLog().addPublisher(new SOSLogPublisher(&#8220;myAppsName&#8221;));</p>
<p>does not establish a publisher through your wrapper&#8230; am I missing something?</p>
<p>It doesn&#8217;t appear as though you ever use the .addConsolePublisher or .addTracePublisher functions that you built into your utility class.  getLog() returns a logger, so I imported LuminicBox.Log.Logger and set a static var equal to LogWrapper.getLog() to clean up some of my code, but I noticed that when I&#8217;m adding publishers I&#8217;m actually doing so through the LuminicBox classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-43</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Sat, 17 Sep 2005 19:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-43</guid>
		<description>Glad you like it :)&lt;br /&gt;
&lt;br /&gt;
I&#8217;ve updated the code above to reference trace instead of TRACE &#8211; thanks for the headsup :)</description>
		<content:encoded><![CDATA[<p>Glad you like it :)</p>
<p>I&#8217;ve updated the code above to reference trace instead of TRACE &#8211; thanks for the headsup :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raz-L</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-42</link>
		<dc:creator>Raz-L</dc:creator>
		<pubDate>Thu, 15 Sep 2005 11:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-42</guid>
		<description>hey thanks, very useful.&lt;br /&gt;
btw, &#8216;TRACE&#8217; became &#8216;trace&#8217; in MTASC 1.10&lt;br /&gt;
bye</description>
		<content:encoded><![CDATA[<p>hey thanks, very useful.<br />
btw, &#8216;TRACE&#8217; became &#8216;trace&#8217; in MTASC 1.10<br />
bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-41</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Mon, 12 Sep 2005 10:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-41</guid>
		<description>Hi Christoph,&lt;br /&gt;
&lt;br /&gt;
Glad you like it. Feel free to use parts of the code in as2lib :) None of it is rocket science! The object inspection code is basically from LuminicBox Logger so retain the credit to that as well&#8230;&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
&lt;br /&gt;
Kelvin :)</description>
		<content:encoded><![CDATA[<p>Hi Christoph,</p>
<p>Glad you like it. Feel free to use parts of the code in as2lib :) None of it is rocket science! The object inspection code is basically from LuminicBox Logger so retain the credit to that as well&#8230;</p>
<p>Cheers,</p>
<p>Kelvin :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Atteneder</title>
		<link>http://www.kelvinluck.com/2005/08/logging-from-fame/comment-page-1/#comment-39</link>
		<dc:creator>Christoph Atteneder</dc:creator>
		<pubDate>Mon, 12 Sep 2005 07:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://nb.kelvinluck.com/?p=36#comment-39</guid>
		<description>Hi Kelvin,&lt;br /&gt;
&lt;br /&gt;
Great job,.. I did the same last week for a as2lib SosHandler, except of code folding what would have been the next point on my todo list ;-). Would you mind if I take over parts of your code into the as2lib SosHandler, (object inspection, folding,..) not have to do the same job again? =). Of course you would be mentioned as author incode.&lt;br /&gt;
&lt;br /&gt;
cheers&lt;br /&gt;
&lt;br /&gt;
Christoph</description>
		<content:encoded><![CDATA[<p>Hi Kelvin,</p>
<p>Great job,.. I did the same last week for a as2lib SosHandler, except of code folding what would have been the next point on my todo list ;-). Would you mind if I take over parts of your code into the as2lib SosHandler, (object inspection, folding,..) not have to do the same job again? =). Of course you would be mentioned as author incode.</p>
<p>cheers</p>
<p>Christoph</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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

