bunyan-rotating-file-stream
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,5 +5,9 @@ # bunyan Changelog | ||
## 1.0.4 | ||
- Correcting github location | ||
## 1.0.3 | ||
- Docs changes | ||
- Docs changes | ||
@@ -10,0 +14,0 @@ ## 1.0.2 |
{ | ||
"name": "bunyan-rotating-file-stream", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "a rotating file stream for the bunyan logging system", | ||
@@ -9,3 +9,3 @@ "author": "Jim Tupper <npm@tupper.org.uk> (http://github.com/rcomian)", | ||
"type": "git", | ||
"url": "git://github.com/Rcomian/node-bunyan-rotating-file-store.git" | ||
"url": "git://github.com/Rcomian/bunyan-rotating-file-store.git" | ||
}, | ||
@@ -12,0 +12,0 @@ "engines": [ |
51
test.js
@@ -21,48 +21,17 @@ var bunyan = require('bunyan'); | ||
var i = 0; | ||
var imax = 1000000; | ||
var imax = 100000; | ||
var batchsize = 8; | ||
var longpayload = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | ||
var ia = setInterval(function () { | ||
i += 1;'' | ||
var payload = longpayload.slice(0, Math.floor(Math.random() * 20)); | ||
log.info({node: 'a', i, payload}); | ||
for (var j = 0; j < batchsize; j += 1) { | ||
log.info({node: 'a', i}); | ||
i += 1; | ||
if (i > imax) { | ||
//clearInterval(ia); | ||
if (i >= imax) { | ||
clearInterval(ia); | ||
return; | ||
} | ||
} | ||
}, 0); | ||
var ib = setInterval(function () { | ||
i += 1;'' | ||
var payload = longpayload.slice(0, Math.floor(Math.random() * 20)); | ||
log.info({node: 'b', i, payload}); | ||
if (i > imax) { | ||
//clearInterval(ib); | ||
} | ||
}, 2); | ||
var ic = setInterval(function () { | ||
i += 1;'' | ||
var payload = longpayload.slice(0, Math.floor(Math.random() * 20)); | ||
log.info({node: 'c', i, payload}); | ||
if (i > imax) { | ||
//clearInterval(ic); | ||
} | ||
}, 97); | ||
var id = setInterval(function () { | ||
i += 1;'' | ||
var payload = longpayload.slice(0, Math.floor(Math.random() * 20)); | ||
log.info({node: 'd', i, payload}); | ||
if (i > imax) { | ||
//clearInterval(id); | ||
} | ||
}, 59); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
406662
31
646
2