Compare commits

...

2 Commits

Author SHA1 Message Date
13981404f3 2.0.41 2021-07-20 21:23:05 +02:00
db951d1877 fix(core): update 2021-07-20 21:23:05 +02:00
3 changed files with 6 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.40", "version": "2.0.41",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.40", "version": "2.0.41",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/isounique": "^1.0.4", "@pushrocks/isounique": "^1.0.4",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartlog", "name": "@pushrocks/smartlog",
"version": "2.0.40", "version": "2.0.41",
"private": false, "private": false,
"description": "minimalistic distributed and extensible logging tool", "description": "minimalistic distributed and extensible logging tool",
"keywords": [ "keywords": [

View File

@@ -40,6 +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) {
return;
}
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:'):