플렉스 콘솔이 새 위치로 이동 : 간단히 말해서 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;
}
}
}
새 사이트에서 도움말 페이지를 확인하십시오.
확인해 보겠습니다. 고마워!! –