Flex and ColdFusion Beginner Tip #2

What is flex doing to ColdFusion?  While I was running the Flex beta, I was getting all kinds of data dumped to my cfusion-out.log file that showed the incoming and outgoing transactions.  Well for some reason after we installed the production ready Flex 2 and CF 7.0.2 this stopped.  Turns out that our services-config.xml file lost an important section.  Make sure that inside the <services-config> section of that file you have a <logging> section that looks something like this:

<logging>
<target class=”flex.messaging.log.ConsoleTarget” level=”Debug”>
<properties>
<prefix>[Flex] </prefix>
<includeDate>true</includeDate>
<includeTime>true</includeTime>
<includeLevel>true</includeLevel>
<includeCategory>true</includeCategory>
</properties>
<filters>
<pattern>Endpoint.*</pattern>
<pattern>Service.*</pattern>
<pattern>Configuration</pattern>
<pattern>Message.*</pattern>
<pattern>DataService.coldfusion</pattern>
</filters>
</target>
</logging>

Important Notes 

  • The level=”Debug” adds a lot more data.
  • <pattern>DataService.coldfusion</pattern> – I have no idea what this does yet, but I read it on adobe.com so it must do something.
  • I turned on date, time, level, and category
  • You would obviously not want all of this in Production

One Response to Flex and ColdFusion Beginner Tip #2

  1. Ricardo Santos says:

    I´m Ricardo from Angola and I´m a new in flex and coldfusion, I need help, I have coldfion Enterprise Installad as muilserver and apache as a web server, also I Flex builber 2, I´m trying to use a Flex Data Service application but I´m getting an error message tha t says source not found when I try to debug, and when I try to run the application in FireFox it just the application… what can I do to solve this problem?

    cheers
    Ricardo.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.