Filtering Traces from Central with the Trace Panel

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:

[code]Central.tracer.appName[/code]

So, for all of my apps, I place :

[code]Central.tracer.appName = “mesh”;[/code]

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:

  • Before releasing your application, you should publish it with Omit Trace Actions on.
  • Before releasing your application, you should comment out the Tracer.app name code.
  • If you have multiple Agents running from your domain, the last one laoded will set the Tracer.appName value.

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.

4 Responses to Filtering Traces from Central with the Trace Panel

  1. Ahhhh… I was wondering about that. Thught it would be the appID or something similar, thanks.

  2. I just read this quote today and I think it’s awesome:It is by universal misunderstanding that all agree. For if, by ill luck, people understood each other, they would never agree.Charles BaudelaireJust thought I’d share.Mike

  3. Please, visit : Need cash? Mypaydayloan.com is your source for free payday loans, payday advance loans, quick payday loan, cash advance & fast cash advance loans! Apply online for free payday loans, payday advance loans & cash advances up to $1000 and receive money overnight!* If you are in need of a short term loan, quick funds, or cash in advance, then a payday loan or payday advance loan is perfect for you. http://www.mypaydayloan.com

  4. Need cash? Mypaydayloan.com is your source for free payday loans, payday advance loans, quick payday loan, cash advance & fast cash advance loans! Apply online for free payday loans, payday advance loans & cash advances up to $1000 and receive money overnight!* If you are in need of a short term loan, quick funds, or cash in advance, then a payday loan or payday advance loan is perfect for you.