1 | var logzioLogger = require('./index');
|
2 |
|
3 | var 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 |
|
18 | console.log('hello');
|
19 | logger.log('ssl testing');
|
20 |
|
21 | for (var i=0; i<100; i++) {
|
22 | logger.log('hello, this is test #:' + i);
|
23 | } |
\ | No newline at end of file |