Extra capabilities in Flex logging target XPanelOnAIR

I've updated my Flex logging target with the possibility to log directly to a text file. Good thing is that you can switch live between catching the log entries in the panel or writing them to a file. Read this blog post to find out how to write logging messages for XPanelOnAIR using Flex' built-in logging framework.

Please note: I didn't bother making the update run automatically,
so you'd better uninstall any previously installed versions first.

Happy logging !

This entry was posted in tools. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted January 31, 2009 at 7:06 am | Permalink

    Thank-you for this very useful tool!!!

    I noticed that it hangs (uses all available CPU for quite awhile) when displaying large messages – HTTPService response messages for example if the response is few kilobytes. To get around this:

    * I added a “shortMessage” field to the created object in dispatchMessage, which contains just the first 100 characters of the message string.

    * I changed the “message” dataField to “shortMessage” in the datagrid

    In addition, in LogMessageDetail

    * I changed the Text field to a TextArea field (to get scrollbars for long messages)

    * changed the width from 400 to 600 (makes some messages easier to read, and there’s plenty of room)

    One problem this introduces:

    * When you generate the CSV file, it saves the shortMessage, not the message

    But i didn’t take time to fix.

    Also, I compiled XPanelDebugTarget into a .swc file so that it’s similar to other libraries I use in my project.

    Anyway, I thought I would share this in case it helps others.

    Thank-you again for a terrific tool!

    -dallan

  2. Posted January 31, 2009 at 2:41 pm | Permalink

    You’re welcome.

    Concerning the long messages, please note that you can double-click a log entry in the datagrid. This opens that log message in a popup, with the message in a TextArea.

    I’ve noticed that sometimes my logging tool hangs after many log entries, that’s why I added the log-to-file option which makes it possible to generate many Megabytes of log entries.

    Feel free to modify & re-distribute it as you wish.

    Thanks for your comment.

  3. Posted January 31, 2009 at 9:34 pm | Permalink

    I noticed that you could double-click on long messages too. That’s why I changed the Text field to a TextArea field in LogMessageDetail.

    The big problem though, is that long messages (say > 10K, which can be generated by rpc logging) cause the datagrid to *hang*. XPanelOnAIR becomes completely unresponsive and you have to restart it. That’s why I added a truncated shortMessage field to the object and had the datagrid display that instead of the message.

    Just thought others might have this problem as well.

    -dallan

  4. Posted February 3, 2009 at 9:20 am | Permalink

    Ok thanks, now I fully understand the issue… Good idea, I’ll integrate your fix with the truncated message soon.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*