@justeat/f-logger

0.8.1 • Public • Published

f-logger

Fozzie Bear

JavaScript logging and error-logging component for the Just Eat Fozzie UI Component Library.


npm version

This component is designed to catch client-side errors and allow client-side logging which will report back via web server logs.

Logging

  • Allows logging points to be placed in the code

Error logging

  • 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

Logging utils

Debugger

  • Sets a debug flag in the client
  • Returns debug info to the client
  • Allows debug mode to be persisted through a cookie

Outputter

  • 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

Readme

Keywords

none

Package Sidebar

Install

npm i @justeat/f-logger

Weekly Downloads

16

Version

0.8.1

License

Apache-2.0

Unpacked Size

22 kB

Total Files

7

Last publish

Collaborators

  • ilia.chikmarev
  • fidel.montesino
  • anastasiia.horban
  • raouf.sawehli
  • mmakwe-onyeka
  • gregory.palaci
  • arielfdr
  • dawidchar
  • roberto.santana
  • lizzie.turney
  • davidpn.11
  • dandel10n
  • mwh1989
  • kevinrodrigues
  • fozzie-bot
  • ashleynolan
  • simonsje
  • xander-marjoram
  • sergii.semenkiv
  • thomaswilliammcclean
  • benrwhite
  • robertellison
  • zlatin.ivanov
  • joshuang2332
  • oliversweb
  • andymayje
  • jamieomaguire
  • adammorr
  • lsphillips