<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns="http://purl.org/rss/1.0/"
>
		
		
		
	<channel rdf:about="http://www.richinternet.de/blog/index.cfm">
	<title>Richinternet Blog</title>
	<description>The Rich Internet Dev Blog</description>
	<link>http://www.richinternet.de/blog/index.cfm</link>
	
	<items>
		<rdf:Seq>
			
			<rdf:li rdf:resource="http://www.richinternet.de/blog/index.cfm?mode=entry&amp;entry=EB3BA9D6-A212-C5FA-A9B1B5DB4BB7F555" />
			
		</rdf:Seq>
	</items>
	
	</channel>
		
		
		
		
		
		
		
		
		
		
		
  	<item rdf:about="http://www.richinternet.de/blog/index.cfm?mode=entry&amp;entry=EB3BA9D6-A212-C5FA-A9B1B5DB4BB7F555">
	<title>Flex Trace Panel 1.1</title>
	<description>&lt;p&gt;&lt;b&gt;UPDATE:&lt;/b&gt; Version 1.5b2 of the Trace Panel is available &lt;a href=&quot;http://www.richinternet.de/blog/index.cfm?entry=8F0C9A56-D3C1-55A6-0EAE917D5A7E6D86&quot;&gt;here&lt;/a&gt;!&lt;/p&gt;
I have updated the Flex Trace Panel to version 1.1 and added a Dumper class that makes tracing easier. The class provides several convenience methods to trace/dump messages out of your app into the panel.The download is available &lt;A href=&quot;http://www.richinternet.de/blog/download/tracePanel-1.1.zip&quot;&gt;here&lt;/A&gt;. 
&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; I also coded a little helper app, that starts the Trace Panel &quot;always-on-top&quot; - more info &lt;A class=&quot;&quot; href=&quot;http://www.richinternet.de/blog/index.cfm?entry=7510F8AC-D018-DBA6-0DA6C9854B8CD9FC&quot; target=_blank&gt;here&lt;/A&gt;.
&lt;P&gt;The archive consists of the updated panel as a standalone exe and the Dumper class file (inside the &quot;src&quot; folder). To make the Dumper class available to all your MXML applications extract it into the &lt;EM&gt;[YourInstallDir]\Flex\WEB-INF\flex\user_classes&lt;/EM&gt; directory and leave the folder structure intact. 
&lt;P&gt;The Dumper class is a static class and provides five methods (four of them are just shortcuts actually) and three different log levels. The levels are 2 (or Dumper.INFO), 4 (Dumper.WARN) and 8 (Dumper.ERROR). 
&lt;UL&gt;
&lt;LI&gt;&lt;B&gt;de.richinternet.utils.Dumper.dump&lt;/B&gt;(message:Object, level:Number):Void &lt;BR&gt;takes the passed Object (any type) and routes it to the Flex Trace Panel, the 2nd paramter is optional and refers to the different log levels of the Dumper class (the default is Dumper.INFO) 
&lt;P&gt;&lt;/P&gt;
&lt;LI&gt;&lt;B&gt;de.richinternet.utils.Dumper.trace&lt;/B&gt;(message:Object):Void &lt;BR&gt;takes the passed Object (any type) calls the Dump.dump() method with log level Dumper.INFO (2). 
&lt;P&gt;&lt;/P&gt;
&lt;LI&gt;&lt;B&gt;de.richinternet.utils.Dumper.info&lt;/B&gt;(message:Object):Void &lt;BR&gt;takes the passed Object (any type) calls the Dump.dump() method with log level Dumper.INFO (2). 
&lt;P&gt;&lt;/P&gt;
&lt;LI&gt;&lt;B&gt;de.richinternet.utils.Dumper.warn&lt;/B&gt;(message:Object):Void &lt;BR&gt;takes the passed Object (any type) calls the Dump.dump() method with log level Dumper.WARN (4). 
&lt;P&gt;&lt;/P&gt;
&lt;LI&gt;&lt;B&gt;de.richinternet.utils.Dumper.error&lt;/B&gt;(message:Object):Void &lt;BR&gt;takes the passed Object (any type) calls the Dump.dump() method with log level Dumper.ERROR (8). 
&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;Here is a simple example on how use the Dumper class:&lt;BR&gt;
&lt;DIV class=code&gt;&lt;pre&gt;import de.richinternet.utils.Dumper;&lt;br&gt;
  &lt;br&gt;
  function traceTest() {&lt;br&gt;
   Dumper.dump(&quot;a normal message&quot;);&lt;br&gt;
   Dumper.info(&quot;also a normal message&quot;);&lt;br&gt;
   Dumper.warn(&quot;oops, a warning message&quot;);&lt;br&gt;
   Dumper.error(&quot;Houston we have a problem!&quot;);&lt;br&gt;
   Dumper.dump(&quot;this is also an error!&quot;, Dumper.ERROR);&lt;br&gt;
  }&lt;/pre&gt;&lt;/DIV&gt;
&lt;P&gt;Together with the updated Flex Trace Panel you are now able to filter the messages, if you select the &quot;ERROR&quot; radiobutton control for example only messages with a level of Dumper.WARN will be displayed. This is what it looks like if you run the above example with a filter setting of &quot;ALL&quot;: 
&lt;P&gt;&lt;IMG height=256 src=&quot;http://www.richinternet.de/blog/img/tracepanel2.jpg&quot; width=354 border=0&gt; 
&lt;P&gt;BTW: The filter does not work on the already displayes messages in the Panel but only on all future messages. 
&lt;P&gt;I also put an experimental method into the Dumper class called &lt;B&gt;Dumper.setHook()&lt;/B&gt; that adds shortcut functions to the Application.application scope. After you called Dumper.setHook() the dump(), warn(), and error() functions are available directly in the application&apos;s main scope - the only thing you have to do is declaring the functions, otherwise the compiler will throw a warning. 
&lt;P&gt;Dirk.&lt;/P&gt;</description>
	<link>http://www.richinternet.de/blog/index.cfm?mode=entry&amp;entry=EB3BA9D6-A212-C5FA-A9B1B5DB4BB7F555</link>
	<dc:date>2004-06-03T17:58:34-02:00</dc:date>
	<dc:subject>Flex Trace Panel,Flex</dc:subject>
	</item>
		
	 	
		</rdf:RDF>
	

