Nominally Patriotic Meathead
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    koala-loggerpublic

    Koala

    Description

    Logger and Analyser

    Installation

    [sudo] npm i --save koala-logger

    Example

    var koala = require('koala-logger');
    var tracker = koala.logger('example');
    
    tracker
      .add('application-error', {
        some: 'data'
      }, function (err) {
        if (err) { console.log(err); }
      });
    

    after the insertion

    tracker
      .list(function (err, result) {
        if (err) { console.log(err); }
        console.log(result);
      });
    

    Express module

    var koala = require('koala-tracker');
    var logger = koala.logger('example');
    var server = koala.server(logger);
    

    running on express app

    app.use(server);
    

    or just run the server

    server.listen(4000);
    

    API

    Visit

    License

    ISC

    install

    npm i koala-logger

    Downloadsweekly downloads

    10

    version

    1.0.3

    license

    ISC

    last publish

    collaborators

    • avatar