Zum Hauptinhalt springen

clientLogger

clientLogger Members

log

Speichert eine Nachricht im local storage des Browsers.

clientLogger.log(message: string)
  • static

Parameter:

  • input: string: Ein String mit einem Datum
clientLogger.log("Some debug information");
// 01.01.2000, 12:00:00: Some debug information

showLogs

Gibt die Logs als string-Array aus.

clientLogger.showLogs(): string[] | "No entry"
  • static
const logs = clientLogger.showLogs();
// "No entry"
// or
// [ "01.01.2000, 12:00:00: Some debug information" ]

clear

Gibt die Logs als string-Array aus.

clientLogger.clear()
  • static
clientLogger.clear();