Logger

Logger

A Console API like class for logging in a GDevelop game.

Constructor

new Logger()

Create a new logger with the given group name. You can then use log, info, warn and error on this object.

Source:

Methods

(static) getDefaultConsoleLoggerOutput()

Give access to the console output used by default by the logger. This can be useful to restore the default log method if you overrode it or to disable some logging in the console.

Source:

(static) getLoggerOutput()

Return the current logger output (common to all gdjs.Logger instances).

Source:

(static) setLoggerOutput()

Change the logger output (common to all gdjs.Logger instances).

Source: