Logger

Module: TSUI.Logging
Extends: None
Implements: ILogger
Exported: Yes

Associated source files:

Description

Main implementation of an ILogger for TypeScript UI. Outputs logs to the browser's console.

Public Properties

Enabled: boolean;
Whether the logger is enabled or not.
Logs: Logging.ILog[];
The array of logs for this logger.
OnLog: TSUI.Events.TextChangeEvent;
Text changed event for when a log is added. Sender object is the added log (not a control).
TraceTypesToShow: string[];
The types of log to actually output to the console. Turn these on/off to filter logs.


Public Methods

GetFullLog(): string
Gets the text for all the logs in the logger.
  • Returns: string -
Log(log: Logging.ILog): void
Add the specified log to this logger and outputs it to the console.
  • log: Logging.ILog -
  • Returns: void -
WriteLine(text: string): void
Writes a line to the console and adds a text-only log.
  • text: string -
  • Returns: void -
_buildLog(log: Logging.ILog): string
Builds the text for the specified log.
  • log: Logging.ILog -
  • Returns: string -


Last edited Sep 6, 2013 at 10:07 PM by EdwardNutting, version 2

Comments

No comments yet.