On this page
Insality/defold-log/log.log
Context logger with performance metrics for Defold
- GitHub: Insality/defold-log — pinned to
2fe3aed- Pick a release from Insality/defold-log 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 log from "log.log"
- Pick a release from Insality/defold-log releases and add its Source code (zip) URL (or a packaged
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:voidlogger_name:stringforce_logger_level_in_debug?:'FATAL' | 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'TRACE'
Returns
LoggerInstance