Class: Logger

modules/Logger.Logger()

Interacts with DOM elements related to activity logging.

Constructor

new Logger()

Source:
See:
  • Communicator

Extends

  • Communicator

Members

domElements :Object.<string, Element>

Type:
  • Object.<string, Element>
Properties:
Name Type Description
logs Element

Displays the log entries.

clearLogs Element

Can be clicked to clear the log entries.

Source:

Methods

clearLogsElementClick()

An event listener delegatee that clears the logs DOM element.

Source:

createLogEntry(content, cssClass)

Creates and styles a paragraph element, then prepend it to the logs DOM element.

Parameters:
Name Type Description
content string

The content to assign to prepend to the logs.

cssClass string

The class to add to the paragraph element.

Source:

logReceive()

Handles log entry notifications from the application.

Source: