Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Logging

Ángel Serrano edited this page Apr 3, 2014 · 1 revision

To print log messages, we use libgdx logging.

Gdx.app.log("MyTag", "my informative message");
Gdx.app.error("MyTag", "my error message", exception);
Gdx.app.debug("MyTag", "my debug message");

We consider the following logging level definitions:

  • serious stuff that should not be ignored: error (important file not found, load failed, ...)
  • informative, low-frequency events ("game loaded") that indicate state changes should use info (Gdx.app.log)
  • everything else: debug

Clone this wiki locally