mike chambers | about

Filtering Traces from Central with the Trace Panel

Friday, December 12, 2003

If you have used the Central trace panel, you may have noticed the “App Name Filter” text field in the bottom left of the panel. This is used to filter trace messages coming from Central so you only see messages coming from your application.

So, how do you use this? It is actually pretty simple.

First, you need to set a global variable in your App / Agent / Pod that tells Central your application name. This is done using:


So, for all of my apps, I place :

Central.tracer.appName = "mesh";

at the root. This value will be passed by Central as the second argument to the trace panel.

Then, in the trace panel, you enter the appName in the App Name Filter textfield. That is all there is to it.

There are a couple of things to keep in mind:

Also, you can set Tracer.appName to be any value (a string, array, etc…) and it will be passed to the Tracer panel. The panel from Macromedia only recognizes strings for the appName value, but the complete source code for the panel is included on the SDK, so you can modify it accept other data types.

You can download the Central Trace panel as part of the Central SDK. You can also download standalone versions for OS X and Win.

twitter github flickr behance