UNPKG

491 BJavaScriptView Raw
1var logzioLogger = require('./index');
2
3var logger = logzioLogger.createLogger({
4 token: 'thuqwebLGAmdurgIrDjLlpAptmQqUkxQ',
5 type: 'thingk-tenant-app',
6 protocol: 'http',
7 sendIntervalMs: 3000,
8 bufferSize: 64,
9 numberOfRetries: 5,
10 addNanoSecs: true,
11 callback: function(ex) {
12 return;
13 },
14 debug: true,
15 timeout: 1000
16});
17
18console.log('hello');
19logger.log('ssl testing');
20
21for (var i=0; i<100; i++) {
22 logger.log('hello, this is test #:' + i);
23}
\No newline at end of file