Client-side logging, error-logging and debugging utils
npm install @justeat/f-loggerJavaScript logging and error-logging component for the Just Eat Fozzie UI Component Library.
---

This component is designed to catch client-side errors and allow client-side logging which will report back via web server logs.
- Allows logging points to be placed in the code
- Allows error logging points to be placed in the client-side JavaScript code
- Hooks onto window.onerror to catch unhandled exceptions
- Passes error message to a file on the web server as a querystring parameter, which can then be parsed via web server log parsers
- Sets a debug flag in the client
- Returns debug info to the client
- Allows debug mode to be persisted through a cookie
- Using debug mode, optionally outputs the logging messages to the console
- For client platforms that do not support console, provides output to the browser window