Very simple Logger interface, to be used in the code.

Implementations should follow the usual interpretation of log severity levels. E.g., if the Logger is set up with severity level of, say, LogLevels.info, then the messages to debug should be ignored. If the level is set to LogLevels.warn, then only warning and debugging messages should be recorded/displayed, etc.

For each call the arguments are:

  • log_point: the identification of the log point, related to the spec (in practice, this should be identical to the id value of the respective HTML element in the specification).
  • position: short description of the position of the log. The string may be empty (i.e., ""), in which case it will be ignored.
  • otherData: the 'real' log information.

Hierarchy

  • Logger

Properties

Accessors

Methods

Properties

level: LogLevels

Accessors

  • get log(): string
  • Accessor to the (readonly) log;

    Returns string

Methods

  • Debug level log.

    Parameters

    • log_point: string
    • position: string
    • Rest ...otherData: LogItem[]

    Returns void

  • Warning level log.

    Parameters

    • log_point: string
    • position: string
    • Rest ...otherData: LogItem[]

    Returns void

  • Error level log.

    Parameters

    • log_point: string
    • position: string
    • Rest ...otherData: LogItem[]

    Returns void

  • Information level log.

    Parameters

    • log_point: string
    • position: string
    • Rest ...otherData: LogItem[]

    Returns void

  • Entry point for a increase in stack level. This is issued at each function entry except the top level, and at some, more complex, cycles. Needed if the logger instance intends to create recursive logs or if the structure is complex.

    Parameters

    • label: string

      identification of the position in the code

    • Optional extra_info: string

      possible extra information on the level increase

    • Rest ...otherData: LogItem[]

    Returns void