From 4f0185a1aaca506f0857dd26bc690e8b36e61683 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 2 Dec 2015 16:23:39 +0100 Subject: [PATCH] small fix for better pipelog support --- .bithoundrc | 1 + index.js | 4 +++- ts/beautylog.os.ts | 2 ++ ts/index.ts | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .bithoundrc diff --git a/.bithoundrc b/.bithoundrc new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.bithoundrc @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/index.js b/index.js index 12d980c..e436521 100644 --- a/index.js +++ b/index.js @@ -81,9 +81,11 @@ var BeautylogOS; case 'warn': logText = localBl.warnPrefix + logText.bold; break; + case 'log': default: logText.blue.bold; console.log(('unknown logType for "' + logText + '"').red.bold); + break; } console.log(logText); return true; @@ -201,7 +203,7 @@ var beautylog = function (logPlatform) { return beautylogBrowser; break; default: - console.log("something is strage about the way you required beautylog"); + console.log("something is strange about the way you required beautylog"); break; } }; diff --git a/ts/beautylog.os.ts b/ts/beautylog.os.ts index d2539f2..2e0a9ce 100644 --- a/ts/beautylog.os.ts +++ b/ts/beautylog.os.ts @@ -46,9 +46,11 @@ module BeautylogOS { case 'warn': logText = localBl.warnPrefix + logText.bold; break; + case 'log': default: logText.blue.bold; console.log(('unknown logType for "' + logText + '"').red.bold); + break; } console.log(logText); return true; diff --git a/ts/index.ts b/ts/index.ts index 1724b00..1b3ed44 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -15,7 +15,7 @@ var beautylog = function(logPlatform:string = "os") { return beautylogBrowser; break; default: - console.log("something is strage about the way you required beautylog"); + console.log("something is strange about the way you required beautylog"); break; } };