Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • mxLog

Index

Constructors

constructor

Properties

DEBUG

DEBUG: boolean

Specifies if the output for debug should be visible in the console.

TRACE

TRACE: boolean

Specified if the output for enter and leave should be visible in the console.

WARN

WARN: boolean

Specifies if the output for warn should be visible in the console.

buffer

buffer: string

Buffer for pre-initialized content.

consoleName

consoleName: "Console"

Specifies the name of the console window.

Methods

Static addButton

  • addButton(lab: string, funct: Function): void
  • Adds a button to the console using the given label and function.

    Parameters

    • lab: string
    • funct: Function

    Returns void

Static debug

  • debug(message: string): void
  • Adds all arguments to the console if DEBUG is enabled.

    Parameters

    • message: string

    Returns void

Static enter

  • enter(string: string): void
  • Writes the specified string to the console if TRACE is true and returns the current time in milliseconds.

    Parameters

    • string: string

    Returns void

Static info

  • info(): void
  • Writes the current navigator information to the console.

    Returns void

Static init

  • init(): void
  • Initializes the DOM node for the console. This requires document.body to point to a non-null value. This is called from within setVisible if the log has not yet been initialized.

    Returns void

Static isVisible

  • isVisible(): boolean

Static setVisible

  • setVisible(visible: boolean): void
  • Shows or hides the console.

    Parameters

    • visible: boolean

    Returns void

Static show

  • show(): void

Static warn

  • warn(message: string): void
  • Adds all arguments to the console if WARN is enabled.

    Parameters

    • message: string

    Returns void

Static write

  • write(): void

Static writeln

  • writeln(): void
  • Adds the specified strings to the console, appending a linefeed at the end of each string.

    Returns void

Generated using TypeDoc