Compare commits

...

6 Commits

Author SHA1 Message Date
d5d6d7bf79 2.0.44 2021-07-21 02:25:22 +02:00
02d10dd08c fix(core): update 2021-07-21 02:25:22 +02:00
4062157544 2.0.43 2021-07-21 01:48:20 +02:00
a673844fb3 fix(core): update 2021-07-21 01:48:20 +02:00
53248a3a3d 2.0.42 2021-07-20 21:30:59 +02:00
0043a553a7 fix(core): update 2021-07-20 21:30:59 +02:00
3 changed files with 3580 additions and 5804 deletions

9375
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -40,10 +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') {
if (!logString || typeof logString.startsWith !== 'function') {
// lets continue as planned
} else if (!logString.startsWith('LOG') && typeof logString === 'string') {
switch (true) {
case logString.substr(0, 20).includes('Error:'):
this.log('error', logString);