Logger interface used within the js-sdk codebase

interface Logger {
    debug(...msg): void;
    error(...msg): void;
    getChild(namespace): Logger;
    info(...msg): void;
    trace(...msg): void;
    warn(...msg): void;
}

Hierarchy (view full)

Methods

  • Output debug message to the logger.

    Parameters

    • Rest ...msg: any[]

      Data to log.

    Returns void

  • Output error message to the logger.

    Parameters

    • Rest ...msg: any[]

      Data to log.

    Returns void

  • Create a child logger.

    Parameters

    • namespace: string

      name to add to the current logger to generate the child. Some implementations of Logger use this as a prefix; others use a different mechanism.

    Returns Logger

  • Output info message to the logger.

    Parameters

    • Rest ...msg: any[]

      Data to log.

    Returns void

  • Output trace message to the logger, with stack trace.

    Parameters

    • Rest ...msg: any[]

      Data to log.

    Returns void

  • Output warn message to the logger.

    Parameters

    • Rest ...msg: any[]

      Data to log.

    Returns void

Generated using TypeDoc