Likelog
Likelog - The Frontend Logging Framework for JavaScript
Likelog server - Backend part for receiving logs from Likelog
Size
This library is very lightweight. The minified file has 5.5 KB and can be GZip-compressed to 2 KB.
Usage
- Install:
yarn add likelog
or
npm install --save likelog
- Usage:
const Likelog ConsoleAppender ServerAppender Levels = ; const log = handleAllErrors: true appenders: name: "App" customPrefix: `Console prefix` showDate: true showLevels: LevelsTRACE LevelsDEBUG LevelsINFO LevelsWARN LevelsERROR url: 'http://localhost:5111/log' name: "App" customPrefix: `Console prefix` sendInterval: 3000 maxCacheSize: 1000 muteErrors: true showLevels: LevelsTRACE LevelsDEBUG LevelsINFO LevelsWARN LevelsERROR ; log;log;log;log;log; log;// function execution...log; // or: log.timeEnd('testTime', Levels.INFO);