Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

console

const console: object

Defined in: client/api.d.ts:2093

Resource-aware console that routes output through the Framework logger.

debug(values?): void

Writes a debug log entry prefixed with the current resource name.

unknown[]

Values formatted and joined with spaces.

void

error(values?): void

Writes an error log entry prefixed with the current resource name.

unknown[]

Values formatted and joined with spaces.

void

info(values?): void

Alias of console.log for informational output.

unknown[]

Values formatted and joined with spaces.

void

log(values?): void

Writes an informational log entry prefixed with the current resource name.

unknown[]

Values formatted and joined with spaces.

void

warn(values?): void

Writes a warning log entry prefixed with the current resource name.

unknown[]

Values formatted and joined with spaces.

void