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

Constructors

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

    Parameters

    • group: string

    Returns Logger

Properties

group: string

Methods

  • 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.

    Returns ConsoleLoggerOutput

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

    Parameters

    Returns void