Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
4062157544 | |||
a673844fb3 | |||
53248a3a3d | |||
0043a553a7 | |||
13981404f3 | |||
db951d1877 |
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.40",
|
"version": "2.0.43",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "minimalistic distributed and extensible logging tool",
|
"description": "minimalistic distributed and extensible logging tool",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -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 || typeof logString.startsWith !== 'function') {
|
||||||
|
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:'):
|
||||||
|
Reference in New Issue
Block a user