Skip to Content
defold-typescript libraries
heroiclabsnakama-defold

heroiclabs/nakama-defold/nakama.util.log

Logging helpers for the Nakama Defold client.

  • GitHub: heroiclabs/nakama-defold — pinned to v3.4.0
    1. Pick a release from heroiclabs/nakama-defold 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 util_log from "nakama.util.log"

Functions

print()U

Print all log messages to the default system output.

silent()U

Silence all logging.

format()

Route logging through string.format, so a call takes a format string followed by its arguments and prints the formatted result.

custom(fn: (...args: unknown[]) => void)U

Set a custom log function.

Parameters

  • fn: (...args: unknown[]) => void — The custom log function.

On this page