Skip to content
M2O Scripting APIScripting reference
Global objectServer APIGenerated

console

const console: object

Defined in: server/api.d.ts:3877

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