Options
All
  • Public
  • Public/Protected
  • All
Menu

Trace provides an application-wide log sink with hook points for extensible logging. Uses typical error levels.

Hierarchy

  • Trace

Index

Constructors

constructor

  • Initializes a new instance of the Trace class.

    Parameters

    Returns Trace

Properties

app

The {@link geocortex.framework.application.Application} that this trace belongs to.

Methods

alert

  • alert(msg: string): void
  • Logs a message at the alert level.

    Parameters

    • msg: string

      The message to log.

    Returns void

binding

  • binding(msg: string, source: string): void
  • Log a debug message about a binding

    Parameters

    • msg: string

      Message

    • source: string

      Binding source -- Observable or ObservableCollection

    Returns void

command

  • command(msg: string): void
  • Log a debug message about a command

    Parameters

    • msg: string

    Returns void

debug

  • debug(msg: string): void
  • Logs a message at the debug level.

    Parameters

    • msg: string

      The message to log.

    Returns void

error

  • error(msg: string, error?: Error): void
  • Logs a message at the error level.

    Parameters

    • msg: string

      The message to log.

    • Optional error: Error

      The exception that generated the message.

    Returns void

event

  • event(msg: string, display?: string): void
  • Log a debug message about an event

    Parameters

    • msg: string

      Message. Can contain markdown form links that will swap text when you click on them

    • Optional display: string

      Raw text message that is displayed when links are parsed

    Returns void

exception

  • exception(msg: string, error?: Error): void
  • Logs a message at the exception level.

    Parameters

    • msg: string

      The message to log.

    • Optional error: Error

    Returns void

info

  • info(msg: string): void
  • Logs a message at the info level.

    Parameters

    • msg: string

      The message to log.

    Returns void

timer

  • timer(msg: string, level: string): void
  • Log a debug message about a timing event

    Parameters

    • msg: string

      Message

    • level: string

      Some high level timings are logged at 'info' level

    Returns void

trace

  • trace(msg: string): void
  • Logs a message at the trace level.

    Parameters

    • msg: string

      The message to log.

    Returns void

view

  • view(msg: string): void
  • Log a debug message about a view action

    Parameters

    • msg: string

    Returns void

warning

  • warning(msg: string): void
  • Logs a message at the warning level.

    Parameters

    • msg: string

      The message to log.

    Returns void