Interface ConsoleAPI

A console interface similar to that provided by the DOM or Node. It will print to D2RMM's logs tab.

See

https://developer.mozilla.org/en-US/docs/Web/API/Console

Example

console.log('Hello, world!');
interface ConsoleAPI {
    debug: ((...args) => void);
    error: ((...args) => void);
    log: ((...args) => void);
    warn: ((...args) => void);
}

Properties

Properties

debug: ((...args) => void)

Outputs a message to the console with the log level 'debug'.

Type declaration

    • (...args): void
    • Parameters

      Returns void

error: ((...args) => void)

Outputs a message to the console with the log level 'error'.

Type declaration

    • (...args): void
    • Parameters

      Returns void

log: ((...args) => void)

Outputs a message to the console with the log level 'info'.

Type declaration

    • (...args): void
    • Parameters

      Returns void

warn: ((...args) => void)

Outputs a message to the console with the log level 'warn'.

Type declaration

    • (...args): void
    • Parameters

      Returns void