0.0.2 • Published 6 years ago
browser-logging-client v0.0.2
browser-logging-client
Sends browser logs to browser-logging-server.
This is useful for retrieving Cypress UI test browser logs.
Any message sent to console.log, console.warn and console.error will be sent to and logged by the logging server.
Usage
Add the dependency to your project with:
yarn add browser-logging-clientor
npm install browser-logging-clientThen import & initialise at the root of your application.
import browserLoggingClient from "browser-logging-client";
browserLoggingClient.initialise();Note calling initialise more than once has no effect.
Ensure the server is running before starting your application.
Publishing
Install np - https://github.com/sindresorhus/np:
yarn global add npRun np and follow instructions.
License
MIT License.
0.0.2
6 years ago