开发者社区> 镜像站> NPM> apester-logger
apester-logger
apester-logger
Last updated 4 years ago by mrsufgi .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apester-logger 
SYNC missed versions from official npm registry.

apester-logger

logging module using winston and logzio-nodejs, created for consistency for logs in our services.

Sample usage

var config = {
    path: './log/',
    options: {
        logzio: {
            token: '_LOGZIO_API_TOKEN',
            type: 'service-name',
            json: 'true',
            debug: 'false',
            level: 'info'
        }
    }
};

var logger = require('./dist/index')(config);

// Now, log :)
logger.error('TEST ERROR', {test: 'yes'}, null);
logger.bootstrap('TEST BOOTSTRAP', {test: 'yes'}, null);
logger.private_api('TEST PRIVATE API', {test: 'yes'}, null);
logger.log('TEST LOG', {test: 'yes'}, 'error', null);

Details

path: the path of the local log directory, creates new folder if not exists. options: object which defines logzio-winston transport library.

NOTE

ALL public function will probably change according to product decisions.

Current Tags

  • 1.1.0                                ...           latest (4 years ago)

17 Versions

  • 1.1.0                                ...           4 years ago
  • 1.0.8                                ...           5 years ago
  • 1.0.6-b                                ...           5 years ago
  • 1.0.6-a                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5-a                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4-a                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3-e                                ...           5 years ago
  • 1.0.3-d                                ...           5 years ago
  • 1.0.3-c                                ...           5 years ago
  • 1.0.3-b                                ...           5 years ago
  • 1.0.3-a                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (7)
Dependents (1)