Class LoggerOutputAreaModel

Output Area Model implementation which is able to limit number of outputs stored.

Hierarchy

Implements

Constructors

Properties

_applyMaxLength: any

Manually apply length limit.

_maxLength: any
clearNext: boolean

A flag that is set when we want to clear the output area after the next addition to it.

The output content factory used by the model.

An observable list containing the output models for this output area.

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

  • get length(): number
  • Get the length of the items in the model.

    Returns number

  • get maxLength(): number
  • Maximum number of outputs to store in the model.

    Returns number

  • set maxLength(value): void
  • The maximum number of outputs to store.

    Parameters

    • value: number

    Returns void

  • get trusted(): boolean
  • Get whether the model is trusted.

    Returns boolean

  • set trusted(value): void
  • Set whether the model is trusted.

    Notes

    Changing the value will cause all of the models to re-set.

    Parameters

    • value: boolean

    Returns void

Methods

  • Add an output, which may be combined with previous output.

    Parameters

    • output: ILogOutput

    Returns number

    The total number of outputs.

    Notes

    The output bundle is copied. Contiguous stream outputs of the same name are combined. The oldest outputs are possibly removed to ensure the total number of outputs is at most .maxLength.

  • Clear all of the output.

    Parameters

    • Optional wait: boolean

      Delay clearing the output until the next message is added.

    Returns void

  • Whether an output should combine with the previous output.

    We combine if the two outputs are in the same second, which is the resolution for our time display.

    Parameters

    Returns boolean

Generated using TypeDoc