Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Logger

Index

Constructors

  • new Logger(group: string): Logger
  • 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

Methods

  • error(...messages: any[]): void
  • Parameters

    • Rest ...messages: any[]

    Returns void

  • getDefaultConsoleLoggerOutput(): ConsoleLoggerOutput
  • 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

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

    Returns LoggerOutput

  • info(...messages: any[]): void
  • Parameters

    • Rest ...messages: any[]

    Returns void

  • log(...messages: any[]): void
  • Parameters

    • Rest ...messages: any[]

    Returns void

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

    Parameters

    Returns void

  • warn(...messages: any[]): void
  • Parameters

    • Rest ...messages: any[]

    Returns void

Properties

group: string

Generated using TypeDoc