LibGDX 로그출력, 로그레벨조정

(LibGDX 로그 출력에서 넘어옴)

1 개요[ | ]

LibGDX 로그 출력
LibGDX 로그레벨 조정

2 로그 출력[ | ]

  • 아래와 같이 로그를 출력할 수 있다.
  • 안드로이드로 실행할 경우 ADT와 동일하게 LogCat 탭에 로그가 출력된다.
Gdx.app.log("MyTag", "my informative message");
Gdx.app.error("MyTag", "my error message", exception);
Gdx.app.debug("MyTag", "my error message");

3 로그수준 조정[ | ]

Gdx.app.setLogLevel(Application.LOG_DEBUG); // 모든 로그를 보여줌
Gdx.app.setLogLevel(Application.LOG_INFO);  // INFO와 ERROR 보여줌 
Gdx.app.setLogLevel(Application.LOG_ERROR); // ERROR만 보여줌
Gdx.app.setLogLevel(Application.LOG_NONE);  // 모두 숨김

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}