Class Logger

A logger that will not produce any output.

This logger also serves as the base class of other loggers as it implements all the required utility functions.

Constructors

Properties

errorCount: number = 0

How many error messages have been logged?

level: LogLevel = LogLevel.Info

The minimum logging level to print.

warningCount: number = 0

How many warning messages have been logged?

Methods

  • Print the given TypeScript log message.

    Parameters

    • diagnostic: Diagnostic

      The TypeScript message that should be logged.

    Returns void

  • Print the given TypeScript log messages.

    Parameters

    • diagnostics: readonly Diagnostic[]

      The TypeScript messages that should be logged.

    Returns void

  • Print a log message.

    Parameters

    • _message: string

      The message itself.

    • level: LogLevel

      The urgency of the log message.

    Returns void

  • Log the given verbose message.

    Parameters

    • text: string

      The message that should be logged.

    Returns void