Flex and ColdFusion Beginner Tip #2

August 3, 2006

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