2010-06-28 5 views
0

"Flex Console"->here이 정말 재미있어 보이는지 확인하고 있습니다. 사용하기가 쉽고 빛을 통합하는 것처럼 보입니다. 그러나 어떻게? 나는 그것에 관하여 약간 정보를 주변에보고 그러나 성공적이지 않았다. 내가 this 게시물을 찾았지만 그것이 사용되는 방법을 이해하지 못한다 ... 누군가가 그것을 사용하는 방법이나 같은 일을 할 다른 응용 프로그램에 대한 모든 추천을 가지고 어떤 생각을 가지고 (필터 및 물건과 함께 명확한 플렉스 로그를 저장) 나는 정말로 감사 할 것입니다.Flex Console - 사용 방법은 무엇입니까?

감사합니다, BS_C3

답변

0

플렉스 콘솔이 새 위치로 이동 : 간단히 말해서 http://code.google.com/p/flex-console/

, 당신은 당신의 프로젝트에서 MiniDebugTarget를 만들고 로깅 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; 
     } 
    } 
} 

새 사이트에서 도움말 페이지를 확인하십시오.

+0

확인해 보겠습니다. 고마워!! –

관련 문제