API Docs for: 1.4.0
Show:

Utils. Module

Defined in: src\utils\Log.ts:10

A utilty class used to add management functionality to common console methods. You can use this class by either creating a new instance, or using the instance at the namespace 'Kiwi.Log'.

log/error/warn methods contained on this class function just like their 'console' equivalents except that:

  • You can assign a tag to message by adding a '#' symbol to the front of a parameter. Example: this.log('Hi', '#welcome');
  • Messages can have multiple tags. Example: this.log('Hi', '#welcome', '#greeting');
  • Messages are recorded (by default) and you can then search through any messages saved.

You can use the 'show' commands to search through recordings and find specific messages.

This module provides the following classes: