Logging -- libgdx

来源:互联网 发布:mac系统怎么卸载软件 编辑:程序博客网 时间:2024/05/05 18:14
Gdx.app.log("MyTag", "my informative message");Gdx.app.error("MyTag", "my error message", exception);Gdx.app.debug("MyTag", "my debug message");

  • Application.LOG_NONE: mutes all logging.// 不打印任何log
  • Application.LOG_DEBUG: logs all messages. 
  • Application.LOG_ERROR: logs only error messages.
  • Application.LOG_INFO: logs error and normal messages.

LibGdx 默认是LOG_INFO级别

Android默认的级别优先级
verbose< debug info warn error< asset

System.out.println("--------------------------");
0 0