Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Logger

Implemented by

Index

Properties

debug

debug: { (...data: any[]): void; (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

Type declaration

    • (...data: any[]): void
    • (...data: any[]): void
    • (message?: any, ...optionalParams: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

    • Parameters

      • Rest ...data: any[]

      Returns void

    • The console.debug() function is an alias for {@link log}.

      since

      v8.0.0

      Parameters

      • Optional message: any
      • Rest ...optionalParams: any[]

      Returns void

error

error: { (...data: any[]): void; (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

Type declaration

    • (...data: any[]): void
    • (...data: any[]): void
    • (message?: any, ...optionalParams: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

    • Parameters

      • Rest ...data: any[]

      Returns void

    • Prints to stderr with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

      const code = 5;
      console.error('error #%d', code);
      // Prints: error #5, to stderr
      console.error('error', code);
      // Prints: error 5, to stderr

      If formatting elements (e.g. %d) are not found in the first string then util.inspect() is called on each argument and the resulting string values are concatenated. See util.format() for more information.

      since

      v0.1.100

      Parameters

      • Optional message: any
      • Rest ...optionalParams: any[]

      Returns void

info

info: { (...data: any[]): void; (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

Type declaration

    • (...data: any[]): void
    • (...data: any[]): void
    • (message?: any, ...optionalParams: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

    • Parameters

      • Rest ...data: any[]

      Returns void

    • The console.info() function is an alias for {@link log}.

      since

      v0.1.100

      Parameters

      • Optional message: any
      • Rest ...optionalParams: any[]

      Returns void

warn

warn: { (...data: any[]): void; (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

Type declaration

    • (...data: any[]): void
    • (...data: any[]): void
    • (message?: any, ...optionalParams: any[]): void
    • Parameters

      • Rest ...data: any[]

      Returns void

    • Parameters

      • Rest ...data: any[]

      Returns void

    • The console.warn() function is an alias for error.

      since

      v0.1.100

      Parameters

      • Optional message: any
      • Rest ...optionalParams: any[]

      Returns void

Methods

setLogLevel

  • Parameters

    Returns void