4.5. Libgdx operation log management, 4.5libgdx Operation Log
The Application interface provides a simple way to manage logs. Logs can contain info, error, and debug messages. Format: Gdx. app. log ("MyTag", "my informative message "); Gdx. app. error ("MyTag", "my error message", exception ); Gdx. app. debug ("MyTag", "my debug message"); In Android, logs are output to logcat. You can set the log level by using the following methods: Gdx. app. setLogLevel (logLevel); logLevel can be the following values:
- Application. LOG_NONE: stop logging all messages.
- Application. LOG_DEBUG: records all messages.
- Application. LOG_ERROR: only error messages are recorded.
- Application. LOG_INFO: records errors and policy messages.
(Www.libgdx.cn is copyrighted. If you need to reprint it, indicate the source) |
Why does eclipse fail to run programs when importing libgdx demos?
How to separate data packets from the installer in libgdx
1. when reading data, use external to read data, and put the data packet in the SD card. first of all, I think it's not surprising. In addition, you can use InputProcessor 3. first, you have a misunderstanding that hit () can be received by all actors. As long as it does not enter the level of touchDragged (), it will not be locked. You only need to judge in the hit () method, do not return this pointer