<?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: Configuring mx.logging.Log with Prana</title>
	<atom:link href="http://www.herrodius.com/blog/88/feed" rel="self" type="application/rss+xml" />
	<link>http://www.herrodius.com/blog/88</link>
	<description>Thoughts from a software developer</description>
	<lastBuildDate>Tue, 01 Jun 2010 08:04:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Igor</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13685</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Mon, 06 Oct 2008 16:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13685</guid>
		<description>No, I mean something like:

{object class=&quot;vegas.logging.targets.XPanelTarget&quot;}
	{property name=&quot;includeCategory&quot; value=&quot;true&quot; /}
	{property name=&quot;includeDate&quot; value=&quot;false&quot; /}
	{property name=&quot;includeLevel&quot; value=&quot;true&quot; /}
	{property name=&quot;includeTime&quot; value=&quot;false&quot; /}
	{property name=&quot;level&quot;}
		{object class=&quot;org.pranaframework.ioc.factory.MethodInvokingObject&quot;}
			{property name=&quot;target&quot; value=&quot;VegasLoggerHelper&quot; type=&quot;Class&quot; /}
			{property name=&quot;method&quot; value=&quot;toVegasLogEventLevel&quot; /}
			{property name=&quot;arguments&quot;}
				{array}
					{value}4{/value}
				{/array}
			{/property}
		{/object}
	{/property}
{/object}</description>
		<content:encoded><![CDATA[<p>No, I mean something like:</p>
<p>{object class=&#8221;vegas.logging.targets.XPanelTarget&#8221;}<br />
	{property name=&#8221;includeCategory&#8221; value=&#8221;true&#8221; /}<br />
	{property name=&#8221;includeDate&#8221; value=&#8221;false&#8221; /}<br />
	{property name=&#8221;includeLevel&#8221; value=&#8221;true&#8221; /}<br />
	{property name=&#8221;includeTime&#8221; value=&#8221;false&#8221; /}<br />
	{property name=&#8221;level&#8221;}<br />
		{object class=&#8221;org.pranaframework.ioc.factory.MethodInvokingObject&#8221;}<br />
			{property name=&#8221;target&#8221; value=&#8221;VegasLoggerHelper&#8221; type=&#8221;Class&#8221; /}<br />
			{property name=&#8221;method&#8221; value=&#8221;toVegasLogEventLevel&#8221; /}<br />
			{property name=&#8221;arguments&#8221;}<br />
				{array}<br />
					{value}4{/value}<br />
				{/array}<br />
			{/property}<br />
		{/object}<br />
	{/property}<br />
{/object}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13684</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Mon, 06 Oct 2008 16:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13684</guid>
		<description>Hi Igor, do you mean referencing another object defined in the application context? If so, you can do this with the ref attribute and element.

&lt;property name=&quot;aProperty&quot; ref=&quot;anotherObject&quot;/&gt;</description>
		<content:encoded><![CDATA[<p>Hi Igor, do you mean referencing another object defined in the application context? If so, you can do this with the ref attribute and element.</p>
<property name="aProperty" ref="anotherObject"/>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13683</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Mon, 06 Oct 2008 15:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13683</guid>
		<description>Thank you very much for the quick response, Christophe! I will try your suggestion.

Another question: could I use the result returned by &quot;MethodInvokingObject&quot; (or some another entity) to initialize some property? Or it&#039;s not possible?</description>
		<content:encoded><![CDATA[<p>Thank you very much for the quick response, Christophe! I will try your suggestion.</p>
<p>Another question: could I use the result returned by &#8220;MethodInvokingObject&#8221; (or some another entity) to initialize some property? Or it&#8217;s not possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13682</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Mon, 06 Oct 2008 14:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13682</guid>
		<description>Hey Igor,

I just added org.pranaframework.ioc.factory.config.LoggingTargetObjectPostProcessor to the svn. This is an object post processor that will auto-register all ILoggingTarget implementations in the application context to the Log.

If you want to use it now, just add this line in the constructor of FlexXMLApplicationContext:

addObjectPostProcessor(new LoggingTargetObjectPostProcessor());

You can then just define logging targets in your context without the need to add them manually via a MethodInvokingObject.

I can&#039;t commit FlexXMLApplicationContext now since I have some more pending changes, but it will be commited in the coming days.</description>
		<content:encoded><![CDATA[<p>Hey Igor,</p>
<p>I just added org.pranaframework.ioc.factory.config.LoggingTargetObjectPostProcessor to the svn. This is an object post processor that will auto-register all ILoggingTarget implementations in the application context to the Log.</p>
<p>If you want to use it now, just add this line in the constructor of FlexXMLApplicationContext:</p>
<p>addObjectPostProcessor(new LoggingTargetObjectPostProcessor());</p>
<p>You can then just define logging targets in your context without the need to add them manually via a MethodInvokingObject.</p>
<p>I can&#8217;t commit FlexXMLApplicationContext now since I have some more pending changes, but it will be commited in the coming days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13681</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Mon, 06 Oct 2008 14:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13681</guid>
		<description>Hi Igor,

That is unfortunately not possible since templates only replace string at this moment. We could (should) introduce the &quot;parent&quot; attribute on a bean so you&#039;d have to type less. Or we could also have a post processor that adds all ILoggingTarget implementations to the Log it finds in the application context.

Both ideas seem interesting to me and the latter might be particularly interesting for FlexXMLApplicationContext.

Thoughts?</description>
		<content:encoded><![CDATA[<p>Hi Igor,</p>
<p>That is unfortunately not possible since templates only replace string at this moment. We could (should) introduce the &#8220;parent&#8221; attribute on a bean so you&#8217;d have to type less. Or we could also have a post processor that adds all ILoggingTarget implementations to the Log it finds in the application context.</p>
<p>Both ideas seem interesting to me and the latter might be particularly interesting for FlexXMLApplicationContext.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13680</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Mon, 06 Oct 2008 13:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13680</guid>
		<description>Hello Christophe.

Is it possible to create a template for &quot;MethodInvokingObject&quot; to invoke &quot;addTarget&quot; method several times on? I have multiple log targets so I&#039;m wondering if there is shorter notation to add my targets to the Log object.</description>
		<content:encoded><![CDATA[<p>Hello Christophe.</p>
<p>Is it possible to create a template for &#8220;MethodInvokingObject&#8221; to invoke &#8220;addTarget&#8221; method several times on? I have multiple log targets so I&#8217;m wondering if there is shorter notation to add my targets to the Log object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13442</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 11 Apr 2008 09:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13442</guid>
		<description>Awesome! Thanks so much for the feedback :o)</description>
		<content:encoded><![CDATA[<p>Awesome! Thanks so much for the feedback <img src='http://www.herrodius.com/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13431</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Thu, 10 Apr 2008 19:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13431</guid>
		<description>Hi Matt,

did you also reference the TraceTarget class somewhere in your code? Importing is not enough. You really need to refer to it via a variable or a static code block.

private static var includedClasses:Array = [TraceTarget];

or with a static code block

{
  TraceTarget
}</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>did you also reference the TraceTarget class somewhere in your code? Importing is not enough. You really need to refer to it via a variable or a static code block.</p>
<p>private static var includedClasses:Array = [TraceTarget];</p>
<p>or with a static code block</p>
<p>{<br />
  TraceTarget<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-13430</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 10 Apr 2008 15:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-13430</guid>
		<description>Hmm, get IoC working generally with prana, but this seems to throw its toys out of the pram :o)

Error: A class with the name &#039;mx.logging.targets.TraceTarget&#039; could not be found.
	at org.pranaframework.utils::ClassUtils$/forName()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\utils\ClassUtils.as:78]
	at org.pranaframework.ioc::ObjectContainer/getObject()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\ObjectContainer.as:121]
	at org.pranaframework.ioc.parser::XmlObjectDefinitionsParser/parseObjectNode()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\parser\XmlObjectDefinitionsParser.as:150]
	at org.pranaframework.ioc.parser::XmlObjectDefinitionsParser/parse()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\parser\XmlObjectDefinitionsParser.as:125]
	at org.pranaframework.ioc.loader::XmlObjectDefinitionsLoader/onLoaderComplete()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\loader\XmlObjectDefinitionsLoader.as:84]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()

Tried &quot;import mx.logging.targets.TraceTarget;&quot; in the Application but no dice. Any ideas?</description>
		<content:encoded><![CDATA[<p>Hmm, get IoC working generally with prana, but this seems to throw its toys out of the pram <img src='http://www.herrodius.com/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
<p>Error: A class with the name &#8216;mx.logging.targets.TraceTarget&#8217; could not be found.<br />
	at org.pranaframework.utils::ClassUtils$/forName()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\utils\ClassUtils.as:78]<br />
	at org.pranaframework.ioc::ObjectContainer/getObject()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\ObjectContainer.as:121]<br />
	at org.pranaframework.ioc.parser::XmlObjectDefinitionsParser/parseObjectNode()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\parser\XmlObjectDefinitionsParser.as:150]<br />
	at org.pranaframework.ioc.parser::XmlObjectDefinitionsParser/parse()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\parser\XmlObjectDefinitionsParser.as:125]<br />
	at org.pranaframework.ioc.loader::XmlObjectDefinitionsLoader/onLoaderComplete()[C:\Users\herremanc\workspace\prana\main\src\org\pranaframework\ioc\loader\XmlObjectDefinitionsLoader.as:84]<br />
	at flash.events::EventDispatcher/dispatchEventFunction()<br />
	at flash.events::EventDispatcher/dispatchEvent()</p>
<p>Tried &#8220;import mx.logging.targets.TraceTarget;&#8221; in the Application but no dice. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://www.herrodius.com/blog/88/comment-page-1#comment-12339</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Mon, 19 Nov 2007 04:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=88#comment-12339</guid>
		<description>Hey, nice writeup.  I&#039;m very interested in Prana, and this article combined with the one someone else wrote about swapping out the service layer at runtime (I don&#039;t have the link on me right now) are really good knowledge to have.</description>
		<content:encoded><![CDATA[<p>Hey, nice writeup.  I&#8217;m very interested in Prana, and this article combined with the one someone else wrote about swapping out the service layer at runtime (I don&#8217;t have the link on me right now) are really good knowledge to have.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
