here that looks really interesting. It seems easy to use and light to integrat开发者_运维百科e. But how? I\'ve been looking around for some info about it but haven\" />
开发者

Flex Console - How to use it?

开发者 https://www.devze.com 2023-01-05 11:40 出处:网络
I\'m checking \"Flex Console\" --> here that looks really interesting. It seems easy to use and light to integrat开发者_运维百科e. But how? I\'ve been looking around for some info about it but haven\

I'm checking "Flex Console" --> here that looks really interesting. It seems easy to use and light to integrat开发者_运维百科e. But how? I've been looking around for some info about it but haven't been successful. I found this post but I don't understand how it is used... If anyone have any idea on how to use it or have any recommendation about any other app that would do the same (save clear flex logs with filters and stuff) I'd be really appreciated.

Regards, BS_C3


Flex Console has moved to a new location: http://code.google.com/p/flex-console/

In a nutshell, you create a MiniDebugTarget in your project and start logging using the Logging API.

import mx.logging.*;
import mx.logging.targets.*;

public class MyApp {

    static private logger:ILogger = Log.getLogger("sample.MyApp");

    public function MyApp() {
        super();
        // Add the MinuDebugTarget to channel
        // all log messages to LocalConnection
        // You only need to do this once!
        var target:MiniDebugTarget = new MiniDebugTarget();
        target.filters = ["*"];
        target.includeDate = true;
        target.includeTime = true;
        target.includeCategory = true;
        target.includeLevel = true;
        Log.addTarget(target);
    }

    public function foo(bar:String):void {
        logger.debug("foo({0})", bar);
        try {
            //    do something
            ..
        } catch(e:Error) {
            logger.error("Error: ", e.message);
            throw e;
        }
    }
}

Check out the Help page at the new site.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号