Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d5d6d7bf79 | |||
02d10dd08c | |||
4062157544 | |||
a673844fb3 | |||
53248a3a3d | |||
0043a553a7 |
9375
package-lock.json
generated
9375
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartlog",
|
"name": "@pushrocks/smartlog",
|
||||||
"version": "2.0.41",
|
"version": "2.0.44",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "minimalistic distributed and extensible logging tool",
|
"description": "minimalistic distributed and extensible logging tool",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -40,10 +40,9 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
|
|||||||
const write = process.stdout.write;
|
const write = process.stdout.write;
|
||||||
process.stdout.write = (...args: any) => {
|
process.stdout.write = (...args: any) => {
|
||||||
const logString: string = args[0];
|
const logString: string = args[0];
|
||||||
if (!logString) {
|
if (!logString || typeof logString.startsWith !== 'function') {
|
||||||
return;
|
// lets continue as planned
|
||||||
}
|
} else if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
||||||
if (!logString.startsWith('LOG') && typeof logString === 'string') {
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case logString.substr(0, 20).includes('Error:'):
|
case logString.substr(0, 20).includes('Error:'):
|
||||||
this.log('error', logString);
|
this.log('error', logString);
|
||||||
|
Reference in New Issue
Block a user