gwt 응용 프로그램에서 gwt-log를 사용하려고하는데이 라이브러리에서 로그 메시지를 가져올 수 없습니다 (어디에서 찾을 수 있을지 모르겠 음). 이러한 구성을 gwt.xml 파일에 추가했습니다.gwt-log 로그 메시지는 어디에 있습니까?
<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
<extend-property name="log_level" values="DEBUG"/>
<set-property name="log_level" value="DEBUG"/>
<set-property name="log_DivLogger" value="DISABLED" />
다음과 같이 내 진입 점 클래스를 수정 한 :
public void onModuleLoad() {
Log.setUncaughtExceptionHandler();
DeferredCommand.addCommand(new Command() {
public void execute() {
onModuleLoad2();
}
});
}
private void onModuleLoad2() {
if (!Log.isLoggingEnabled()) {
Window.alert("Logging is disabled. No log messages will appears.");
}
Log.trace("This is a 'TRACE' test message");
Log.debug("This is a 'DEBUG' test message");
Log.info("This is a 'INFO' test message");
Log.warn("This is a 'WARN' test message");
Log.error("This is a 'ERROR' test message");
Log.fatal("This is a 'FATAL' test message");
}
을하고 나는이 메시지는 콘솔에 인쇄받을 수 있지만 문제는 내가에 인쇄물로 다른 메시지를받을 수 없다는 것입니다 서버 쪽 또는 클라이언트 쪽에서, 그래서 내가 빠진 것이 있습니까?
감사