@logshot/client
v0.1.0
Published
Forward console output to a local LogShot server (POST /ingest). No server or native dependencies.
Downloads
20
Maintainers
Readme
@logshot/client
Patches console.log, console.info, console.warn, and console.error so lines also go to a local LogShot server (POST /ingest). No dependencies beyond fetch.
Run LogShot with a browser source (see the logshot package). Default URL: http://127.0.0.1:7331.
npm install @logshot/clientimport { initLogshot } from '@logshot/client';
const stop = initLogshot();Optional port: initLogshot(7331). Call stop() on teardown (for example return it from a React useEffect). Only use in development—gate the call yourself (import.meta.env.DEV, etc.).
License
MIT
