SDK
A browser JavaScript client for Logary or any other HTTP server you wish to send to.
Install / Use
/learn @causiq/SDKREADME
Logary JS v6-beta
Logging and tracing library that ships into Logary Analytics from Browser and NodeJS servers.
Extra support for ReactJS and NextJS; see packages/logary-plugin-* — each plugin has an
README.md that aims to get you started.
Getting started
See the logary README. and then try an example.
Plugins
All code in this repo is runnable both server- and client-side.
Trying an example
Do the above, and then:
cd examples/with-nextjs-app
yarn
yarn dev
Open http://localhost:3000 in a browser.
Building
yarn
yarn dev
You may also want to run yarn lerna bootstrap, yarn lerna link if you reinstall packages,
and yarn lerna run build if you change the packages while testing an example.
Upgrading deps
yarn lerna exec -- "yarn upgrade --latest"
Or if you get the "missing module in workspace":
yarn lerna exec -- "npx yarn@1.19.1 upgrade --latest"
Then run the tests:
yarn test
yarn test:e2e
Publishing
Calling make on its own ensures all packages are fresh and link/compile properly.
make
yarn publish
