On this page

Insality/defold-log/log.log

Context logger with performance metrics for Defold

  • GitHub: Insality/defold-log — pinned to 2fe3aed
    1. Pick a release from Insality/defold-log releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as log from "log.log"

Functions

get_logger(this: void, logger_name: string, force_logger_level_in_debug?: 'FATAL' | 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'TRACE'): LoggerInstance

Create a new logger instance with an optional forced log level for debugging purposes.

Parameters

  • this: void
  • logger_name: string
  • force_logger_level_in_debug?: 'FATAL' | 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'TRACE'

Returns

  • LoggerInstance