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("--------------------------");