@knotel/meteor-logger

Override console.log with time stamps

Stats

StarsIssuesVersionUpdatedCreatedSize
@knotel/meteor-logger
2.0.14 years ago4 years agoMinified + gzip package size for @knotel/meteor-logger in KB

Readme

meteor-logger

Prepends console functions with timestamp. Works for Meteor.

Install

npm install @knotel/meteor-logger

Init the logger

import MeteorLogger from '@knotel/meteor-logger';
MeteorLogger.init()

Example:

import MeteorLogger from '@knotel/meteor-logger';
MeteorLogger.init(options)
console.log('Hello World')
// APP LOG[1509812506800]: Hello World

Reset the logger

MeteorLogger.reset()

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.