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

8 years ago

1.0.6-b

8 years ago

1.0.6-a

8 years ago

1.0.6

8 years ago

1.0.5-a

8 years ago

1.0.5

8 years ago

1.0.4-a

8 years ago

1.0.4

8 years ago

1.0.3-e

8 years ago

1.0.3-d

8 years ago

1.0.3-c

8 years ago

1.0.3-b

8 years ago

1.0.3-a

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago