@ledgerhq/logs
    TypeScript icon, indicating that this package has built-in type declarations

    6.2.0 • Public • Published

    @ledgerhq/logs

    Utility library that is used by all Ledger libraries to dispatch logs so we can deal with them in a unified way.

    API

    Table of Contents

    Log

    A Log object

    log

    log something

    Parameters

    • type string a namespaced identifier of the log (it is not a level like "debug", "error" but more like "apdu-in", "apdu-out", etc...)
    • message string? a clear message of the log associated to the type
    • data any?

    listen

    listen to logs.

    Parameters

    • cb Subscriber that is called for each future log() with the Log object

    Returns Unsubscribe a function that can be called to unsubscribe the listener

    Keywords

    Install

    npm i @ledgerhq/logs

    DownloadsWeekly Downloads

    66,886

    Version

    6.2.0

    License

    Apache-2.0

    Unpacked Size

    26.3 kB

    Total Files

    15

    Last publish

    Collaborators

    • haammar-ledger
    • achabrolin-ledger
    • mortalkastor
    • gre
    • btchip
    • meriadec
    • flocks
    • amougel
    • juan-cortes
    • val_pinkman
    • iammorrow
    • phenry-ledger
    • jdecussy-ledger
    • lfbarreto
    • junsugiura
    • hzheng_ledger
    • machard-ledger
    • glethuillier_ledger