Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Debug

Package version

A simple mechanism for enabling logging. Intended to mimic the publicly available debug package.

Hierarchy

  • Debug

Callable

  • Creates a new logger with the given namespace.

    Parameters

    • namespace: string

    Returns Debugger

Index

Properties

Properties

disable

disable: function

Disables all logging, returns what was previously enabled.

Type declaration

    • (): string
    • Returns string

enable

enable: function

Enables a particular set of namespaces. To enable multiple separate them with commas, e.g. "info,debug". Supports wildcards, e.g. "azure:*" Supports skip syntax, e.g. "azure:,-azure:storage:" will enable everything under azure except for things under azure:storage.

Type declaration

    • (namespaces: string): void
    • Parameters

      • namespaces: string

      Returns void

enabled

enabled: function

Checks if a particular namespace is enabled.

Type declaration

    • (namespace: string): boolean
    • Parameters

      • namespace: string

      Returns boolean

log

log: function

The default log method (defaults to console)

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

Generated using TypeDoc