0.0.8 • Published 8 years ago

zlogjs-logger v0.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

zlogjs-logger

Join the chat at https://gitter.im/Emallates/zlogjs-logger Version Build StatusISSUES FORKS STARS DownloadsLicense

##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

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago