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",
"version": "2.0.40",
"version": "2.0.41",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartlog",
"version": "2.0.40",
"version": "2.0.41",
"license": "MIT",
"dependencies": {
"@pushrocks/isounique": "^1.0.4",

View File

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

View File

@@ -40,6 +40,9 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
const write = process.stdout.write;
process.stdout.write = (...args: any) => {
const logString: string = args[0];
if (!logString) {
return;
}
if (!logString.startsWith('LOG') && typeof logString === 'string') {
switch (true) {
case logString.substr(0, 20).includes('Error:'):