Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WAKConsole

Writes message to the log file and the debugger's console.

console.log('Hello World!');
// Hello World!
console.log("I'm %d years old.", userAge);
// I'm 20 years old.
console.log('My first car was a', car, '. The object is: ', someObject);
// My first car was a Toyota. The object is: { name: 'Toyota' }
console.log({ str: 'Some text', id: 5 });
// { str: 'Some text', id: 5 }

Hierarchy

  • WAKConsole

Index

Properties

Methods

Properties

content

content: Array<String>

Get logged messages.

var lastLogs = console.content.join('\n');

Methods

error

  • error(message: String, ...subst: any[]): void
  • error(message: Object): void
  • Parameters

    • message: String

      Message to log. Can use the following substitution strings: %o, %s, %d, %i, %f.

    • Rest ...subst: any[]

      Substitution value

    Returns void

  • Parameters

    • message: Object

    Returns void

log

  • log(message: String, ...subst: any[]): void
  • log(message: Object): void
  • Parameters

    • message: String

      Message to log. Can use the following substitution strings: %o, %s, %d, %i, %f.

    • Rest ...subst: any[]

      Substitution value

    Returns void

  • Parameters

    • message: Object

    Returns void

warn

  • warn(message: String, ...subst: any[]): void
  • warn(message: Object): void
  • Parameters

    • message: String

      Message to log. Can use the following substitution strings: %o, %s, %d, %i, %f.

    • Rest ...subst: any[]

      Substitution value

    Returns void

  • Parameters

    • message: Object

    Returns void