0.1.2 • Published 9 years ago

life-helper v0.1.2

Weekly downloads
19
License
MIT
Repository
github
Last release
9 years ago

life-helper

npm version

What is this

  • This is module, which contains logHelper for js applications.

What the idea

Idea to having proper logging for JS applications. And have possibilities to turn it on/off. Next major version will have option to load logs to PIWIK or SPLUNK server.

Features

  • Simple usage example
    • LogHelper.log('MyApplication :: START');
    • LogHelper.log('MyClass.myMethod :: START', options);
  • Example with levels
    • LogHelper.trace('Test for trace message');
    • LogHelper.info('Test for info message');
    • LogHelper.warn('Test for warning message');
    • LogHelper.error('Test for error message');
    • LogHelper.crit('Test for critical message');
  • Example with tags
    • LogHelper.traceTag('XTAG1', 'Test for trace message');
    • LogHelper.infoTag('XTAG1', 'Test for info message');
    • LogHelper.warnTag('XTAG1', 'Test for warning message');
    • LogHelper.errorTag('XTAG1', 'Test for error message');
    • LogHelper.critTag('XTAG1', 'Test for critical message');
  • Getting cached logs
    • LogHelper.getCache()

How to run

  • Install via npm npm install --save-dev life-helper or just download from GitHub
  • Install all required dependencies via npm install
  • Run simple nodejs webserver via node server.js
  • Open an examples:
    • AMD => http://localhost:8091/examples/amd/index.html?LIFE_MODE=DEBUG
    • IIFE => http://localhost:8091/examples/iife/index.html?LIFE_MODE=DEBUG
    • CommonJS => in CLI, under /examples/commonJS run command node index.js

Run all examples with query ?LIFE_MODE=DEBUG or ?LIFE_MODE=FULL_DEBUG

0.1.2

9 years ago

0.1.0

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago