1.0.3 • Published 3 years ago

logger-diff v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

logger-diff

paper and pen are better than good memory.

in other words, if you love vanillaJs, then love and logs)

Introduction

Have you ever worked with very large js files? When there are 20000 lines in the file. And you need to keep track of :

  • where which function is called
  • their calling order.
  • values of the variables.
  • and what changed when you wrote new functionality
  • etc

It's all very difficult So, let me introduce you my humble solution (in draft state for 1 Nov 2021)

Installation

logger-diff requires Node.js to run.

npm i logger-diff

Usage in code

const {createLogger} = require('logger-diff');
const logger = createLogger('someUniqueLabel');

logger.sendLog('any', 'arguments', 'up', 'to', 'you');

Watch in demo site

  • visit logger-diff-web.herokuapp.com
  • and shout loudly "OMG! This site is still under development"
  • enter your unique label in the "Label" field
  • press "Search" button
  • wait for heroku to wake up at the first request. Next requests should execute faster
  • in the main workarea you will see two identical tabs
  • you may choose your logs by timestamp
  • and look for the difference between the two logs

Note: the solution is at the development stage, and so far there is little functionality. I hope there will be many interesting and useful things in the future

License

Feel free to use in any good ideas (commercial/private/opensource/etc)

with love to JS from Kazakhstan, Qazaq IT community

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago