How to use the @ledgerhq/logs.listen function in @ledgerhq/logs

To help you get started, weā€™ve selected a few @ledgerhq/logs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LedgerHQ / ledger-live-common / cli / src / commands / proxy.js View on Github external
Observable.create(o => {
    const unsub = listen(l => {
      if (verbose) {
        o.next(l.type + ": " + l.message);
      } else if (!silent && l.type === "proxy") {
        o.next(l.message);
      }
    });

    let Transport;
    let saveToFile = null;
    let recordStore;

    const getTransportLike = () => {
      return {
        open: () => open(device || ""),
        create: () => open(device || "")
      };

@ledgerhq/logs

Ledger logs central point

MIT
Latest version published 5 months ago

Package Health Score

89 / 100
Full package analysis

Popular @ledgerhq/logs functions