Flex 2 Logger Class

Posted on August 3, 2006 | 1 comment

[lang_en]I have created a Logger class that that can easily be used through an application. It provides a one place logging mechanism without having to import and classes or change for different output methods.

It uses the Flex 2 mx.logging.Log class to support different Targets. By default the Logger class enables 3 targets, Flex’s default trace, XPanel and FlexTracePanel.

The next cool feature of the Logger class is that it comes with a LogController that if included into the application gives you the ability to enable/disable targets in runtime. You include the LogController and then press CTRL-SHIFT-L in the application to see the popup configuration menu. You can try it here.

The home page for this class/component is located here.

You’ll find documentation and all the source available on that page above.

Here is the links to the different 3rd party logging applications supported by the Logger class.

Flex Trace Panel – Copyright 2005 Herrlich & Ramuschkat GmbH (www.richinternet.de)
XPanel – Copyright 2006, FarataSystems Inc., Copyright 2006, Computer Technology Inc. (http://www.faratasystems.com/xpanel/xpanel.htm also on Adobe’s Flex Exchange)

[/lang_en] [lang_zh] 我创造一个很容易地用任何应用的Logger Class. 它提供一个不需要入口或改变不同的logging机关。 为了支持不同的目标它用 Flex 2 mx. logging.Log class. 缺省就会使能够三个目标, Flex的缺省trace, Xpanel和FlexTracePanel。 Logger class的特别好特色就是它提供一个如果包括在应用内会给你能力来与runtime使能够或废使能够的目标的LogController。为了看到 popup 的势,包括LogController之后在应用内按 CTRL-SHIFT-L。在这儿你可以试验。

这个class/component的本页在这儿。

上述的网站有所有的代码程序和文件。

Flex Trace Panel – Copyright 2005 Herrlich & Ramuschkat GmbH (www.richinternet.de)
XPanel – Copyright 2006, FarataSystems Inc., Copyright 2006, Computer Technology Inc. (http://www.faratasystems.com/xpanel/xpanel.htm also on Adobe’s Flex Exchange)

这儿有不同第三手Logger class支持logging应用的连接。 [/lang_zh]