Skip to content
⛔️ [NOT MAINTAINED] Plugin for loglevel which allows buffering of log messages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.gitignore
.istanbul.yml
.jshintignore
.npmignore
.travis.yml
LICENSE.txt
README.md
karma.conf.js
package.json

README.md

loglevel Message buffer plugin NPM Version Build Status Test Coverage

Plugin for loglevel which allows buffering of log messages

Usage

AMD

define(['loglevel', 'loglevel-message-buffer'], function(log, loglevelMessageBuffer) {

  loglevelMessageBuffer(log);

  log.warn('TEST');
  // Flushes the buffer and sends all messages forward (NOTE: #flush becomes only available after a message is sent)
  log.flush();

});

Node.js require

var log = require('loglevel');
var loglevelMessageBuffer = require('loglevel-message-buffer');

loglevelMessageBuffer(log);

log.warn('TEST');
  // Flushes the buffer and sends all messages forward (NOTE: #flush becomes only available after a message is sent)
log.flush();

Development

Clone the sources and install the package using npm:

npm install

Run the following NPM script to lint, test and check coverage of the code:

npm run check

License and copyright

Copyright (c) 2016-2017 University Of Helsinki (The National Library Of Finland)

This project's source code is licensed under the terms of MIT License.

You can’t perform that action at this time.