Flex 2 Logger Class
[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]