small fix for better pipelog support
This commit is contained in:
parent
0aafb76046
commit
4f0185a1aa
1
.bithoundrc
Normal file
1
.bithoundrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
4
index.js
4
index.js
@ -81,9 +81,11 @@ var BeautylogOS;
|
|||||||
case 'warn':
|
case 'warn':
|
||||||
logText = localBl.warnPrefix + logText.bold;
|
logText = localBl.warnPrefix + logText.bold;
|
||||||
break;
|
break;
|
||||||
|
case 'log':
|
||||||
default:
|
default:
|
||||||
logText.blue.bold;
|
logText.blue.bold;
|
||||||
console.log(('unknown logType for "' + logText + '"').red.bold);
|
console.log(('unknown logType for "' + logText + '"').red.bold);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
console.log(logText);
|
console.log(logText);
|
||||||
return true;
|
return true;
|
||||||
@ -201,7 +203,7 @@ var beautylog = function (logPlatform) {
|
|||||||
return beautylogBrowser;
|
return beautylogBrowser;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log("something is strage about the way you required beautylog");
|
console.log("something is strange about the way you required beautylog");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -46,9 +46,11 @@ module BeautylogOS {
|
|||||||
case 'warn':
|
case 'warn':
|
||||||
logText = localBl.warnPrefix + logText.bold;
|
logText = localBl.warnPrefix + logText.bold;
|
||||||
break;
|
break;
|
||||||
|
case 'log':
|
||||||
default:
|
default:
|
||||||
logText.blue.bold;
|
logText.blue.bold;
|
||||||
console.log(('unknown logType for "' + logText + '"').red.bold);
|
console.log(('unknown logType for "' + logText + '"').red.bold);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
console.log(logText);
|
console.log(logText);
|
||||||
return true;
|
return true;
|
||||||
|
@ -15,7 +15,7 @@ var beautylog = function(logPlatform:string = "os") {
|
|||||||
return beautylogBrowser;
|
return beautylogBrowser;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log("something is strage about the way you required beautylog");
|
console.log("something is strange about the way you required beautylog");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user