zlogjs-logger
v0.0.8
Published
provides the functionality to log locally or log via online service
Downloads
22
Readme
zlogjs-logger
##DESCRIPTION logger
Table of Contents
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))