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

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

  • Has an error been raised through the log method?

    Returns boolean

  • Has a warning been raised through the log method?

    Returns boolean

  • 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

Properties

errorCount: number = 0

How many error messages have been logged?

i18n: TranslationProxy = dummyTranslationProxy

Translation utility for internationalization.

level: LogLevel = LogLevel.Info

The minimum logging level to print.

warningCount: number = 0

How many warning messages have been logged?