Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Logger

Index

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

  • diagnostic(diagnostic: Diagnostic): void
  • Print the given TypeScript log message.

    Parameters

    • diagnostic: Diagnostic

      The TypeScript message that should be logged.

    Returns void

  • diagnostics(diagnostics: readonly Diagnostic[]): void
  • Print the given TypeScript log messages.

    Parameters

    • diagnostics: readonly Diagnostic[]

      The TypeScript messages that should be logged.

    Returns void

  • error(text: string): void
  • hasErrors(): boolean
  • hasWarnings(): boolean
  • info(text: string): void
  • log(_message: string, level: LogLevel): void
  • resetErrors(): void
  • resetWarnings(): void
  • verbose(text: string): void
  • Log the given verbose message.

    Parameters

    • text: string

      The message that should be logged.

    Returns void

  • warn(text: string): void

Generated using TypeDoc