1.1.0 • Published 8 years ago

apester-logger v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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.

1.1.0

8 years ago

1.0.8

9 years ago

1.0.6-b

9 years ago

1.0.6-a

9 years ago

1.0.6

9 years ago

1.0.5-a

9 years ago

1.0.5

9 years ago

1.0.4-a

9 years ago

1.0.4

9 years ago

1.0.3-e

9 years ago

1.0.3-d

9 years ago

1.0.3-c

9 years ago

1.0.3-b

9 years ago

1.0.3-a

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago