Hierarchy

  • Logger
    • PluginLogger

Constructors

Properties

errorCount: number

How many error messages have been logged?

level: LogLevel

The minimum logging level to print.

warningCount: number

How many warning messages have been logged?

Methods

  • Parameters

    • message: string
    • _level: LogLevel
    • Rest ..._args: [Node?] | [number, MinimalSourceFile]

    Returns string

  • Log the given deprecation message.

    Parameters

    • text: string | (() => string)

      The message that should be logged.

    • Optional addStack: boolean

      TODO: Not sure why ?

    Returns void

  • 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

  • Log the given error message.

    Parameters

    • text: string | (() => string)

      The error 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

  • Log the given info message.

    Parameters

    • text: string | (() => string)

      The message that should be logged.

    Returns void

  • Print a log message.

    Parameters

    • message: string | (() => string)

      The message itself.

    • level: LogLevel

      The urgency of the log message.

    Returns void

  • Reset the error counter.

    Returns void

  • Reset the warning counter.

    Returns void

  • Log the given verbose message.

    Parameters

    • text: string | (() => string)

      The message that should be logged.

    Returns void

  • Log the given warning message.

    Parameters

    • text: string | (() => string)

      The warning that should be logged.

    Returns void

Generated using TypeDoc