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

constructor

Properties

errorCount

errorCount: number = 0

How many error messages have been logged?

level

level: LogLevel = LogLevel.Info

The minimum logging level to print.

warningCount

warningCount: number = 0

How many warning messages have been logged?

Methods

diagnostic

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

    Parameters

    • diagnostic: Diagnostic

      The TypeScript message that should be logged.

    Returns void

diagnostics

  • 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

  • error(text: string): void

hasErrors

  • hasErrors(): boolean

hasWarnings

  • hasWarnings(): boolean

info

  • info(text: string): void

log

  • log(_message: string, level: LogLevel): void

resetErrors

  • resetErrors(): void

resetWarnings

  • resetWarnings(): void

verbose

  • verbose(text: string): void
  • Log the given verbose message.

    Parameters

    • text: string

      The message that should be logged.

    Returns void

warn

  • warn(text: string): void

Generated using TypeDoc