zlogjs-logger

0.0.8 • Public • Published

zlogjs-logger

Join the chat at https://gitter.im/Emallates/zlogjs-logger Version Build Status
ISSUES FORKS STARS Downloads
License

DESCRIPTION

logger

Table of Contents

  1. Prerequisites
  2. Installation
  3. Configuration
  4. Issues or Suggestions
  5. License

Prerequisites

Clients should be registered with the regarding service to use log service

Installation

Install stable version from NPM:

npm install zlogjs-logger --save

Configuration

You have to set the mode and proide the api information.

Logger && Log

//express
app.use(logger(conf))
//manual use
logger(//params);

Log using service

//config
var conf = {
       appId:'app_id',
       apiKey:'api_key',
       ip:'host', port:'port',
       mode : 'central', || leave mode 
} 
app.use(logger(conf))
 

Log using local file

//config
var conf = {
       appId:'app_id',
       apiKey:'api_key',
       ip:'host', port:'port',
       mode : 'local', || leave mode 
}
app.use(logger(conf))
 

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i zlogjs-logger

Weekly Downloads

1

Version

0.0.8

License

MIT

Last publish

Collaborators

  • emallates