Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface Logger

    Logger interface for SDK log output.

    Pass any object implementing debug, info, warn, and error via the logger option when initializing SinchClient. Messages use LogMessage.

    interface Logger {
        debug(message: LogMessage, ...meta: any[]): void;
        error(message: LogMessage, ...meta: any[]): void;
        info(message: LogMessage, ...meta: any[]): void;
        warn(message: LogMessage, ...meta: any[]): void;
    }
    Index

    Methods

    • On failed HTTP responses (non-success status), the SDK logs the API name, operation, status code, HTTP method, request URL, and response headers. Enable debug on your logger to troubleshoot authentication issues, expired tokens, and other API errors.

      Parameters

      Returns void

    • SDK-level errors surfaced during client initialization or configuration.

      Parameters

      Returns void

    • Informational SDK messages, such as deprecation guidance for specific APIs.

      Parameters

      Returns void

    • Deprecation notices and configuration warnings (for example conflicting credentials or deprecated region parameters).

      Parameters

      Returns void