1.0.10 • Published 5 years ago

bandar-log v1.0.10

Weekly downloads
13
License
ISC
Repository
github
Last release
5 years ago

bandar-log

npm i bandar-log

const bandarlog = require('bandar-log');

const options = {
	level: 'debug',
	transports: [
		{ type: bandarlog.TRANSPORT.CONSOLE },
		{ type: bandarlog.TRANSPORT.FILE },
		{
			type   : bandarlog.TRANSPORT.UDP,
			host   : '127.0.0.1',
			port   : 4321,
			secret : 'secret key',
			store  : {
				project  : 'test_project',
				hostname : 'test_hostname'
			},
			onResp : data => console.log('onResp', data)
		}
	]
};

const log = bandarlog(options, 'winston.log', module);

log.info('test info');
log.debug('test debug');
log.error('test error');
1.0.10

5 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago