heroiclabsnakama-defold
heroiclabs/nakama-defold/nakama.util.log
Logging helpers for the Nakama Defold client.
- GitHub: heroiclabs/nakama-defold — pinned to
v3.4.0- Pick a release from heroiclabs/nakama-defold releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as util_log from "nakama.util.log"
- Pick a release from heroiclabs/nakama-defold releases and add its Source code (zip) URL (or a packaged
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.