@alexd1971/logger

Logger for log-server (https://github.com/alexd1971/log-server)

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Aug 2, 2016Aug 2, 2016Minified + gzip package size for @alexd1971/logger in KB

Readme

Logger

Description

Simple client for log-server based on winston project

Logger uses HTTP as transport and requires running log-server

Installation

$ npm install @alexd1971/logger --save

Usage

var options = {
    host: 'localhost', // optional (default: localhost)
    port: 4114 //optional (default: 4114)    
};

// Options can be omitted. If so defaults will be used
var logger = require('@alexd1971/logger').create(options);

logger.info("Super important log message");

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.