Skip to content

Console

The console module allows to output messages into the studio log dock panel.

Usage

This module is implicity included in every scripts, no require necessary.

Reference

log

static log(text)

Output log message

Parameters

  • text (string)

debug

static debug(text)

Output debug message

Parameters

  • text (string)

warning

static warning(text)

Output warning message

Parameters

  • text (string)

error

static error(text)

Output error message

Parameters

  • text (string)

inspect

static inspect(value)

Output inspector to the console that allows inspecting the value with a UI

Parameters

  • value (any)

Examples

local System = require 'engine/system'

Console.log("Hello World!")
Console.debug("The current time is " .. tostring(System.getTime()))
Console.warn("This is a warning")
Console.error("Something went wrong!")