This commit is contained in:
Philipp Kunz 2015-11-01 22:07:29 +01:00
parent 915b3d5f5e
commit d04f5ece8e
8 changed files with 13 additions and 6 deletions

View File

@ -119,7 +119,6 @@ var BeautylogBrowser;
(function (BeautylogBrowser) { (function (BeautylogBrowser) {
function init() { function init() {
var beautylogBrowser = {}; var beautylogBrowser = {};
return beautylogBrowser;
beautylogBrowser.log = function (message) { beautylogBrowser.log = function (message) {
console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;"); console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");
}; };
@ -135,6 +134,7 @@ var BeautylogBrowser;
beautylogBrowser.warn = function (message) { beautylogBrowser.warn = function (message) {
console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;"); console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");
}; };
return beautylogBrowser;
} }
BeautylogBrowser.init = init; BeautylogBrowser.init = init;
})(BeautylogBrowser || (BeautylogBrowser = {})); })(BeautylogBrowser || (BeautylogBrowser = {}));

View File

@ -22,3 +22,5 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"',
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn'); beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
console.log(''); console.log('');
console.log('*** end test ***'); console.log('*** end test ***');
console.log("start test of beautylog browser module (Might look weird in is console...)");
beautyLogBrowser.log("hello");

View File

@ -3,7 +3,6 @@ var BeautylogBrowser;
(function (BeautylogBrowser) { (function (BeautylogBrowser) {
function init() { function init() {
var beautylogBrowser = {}; var beautylogBrowser = {};
return beautylogBrowser;
beautylogBrowser.log = function (message) { beautylogBrowser.log = function (message) {
console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;"); console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");
}; };
@ -19,6 +18,7 @@ var BeautylogBrowser;
beautylogBrowser.warn = function (message) { beautylogBrowser.warn = function (message) {
console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;"); console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");
}; };
return beautylogBrowser;
} }
BeautylogBrowser.init = init; BeautylogBrowser.init = init;
})(BeautylogBrowser || (BeautylogBrowser = {})); })(BeautylogBrowser || (BeautylogBrowser = {}));

View File

@ -1 +1 @@
{"version":3,"file":"console.browser.js","sourceRoot":"","sources":["console.browser.ts"],"names":["BeautylogBrowser","BeautylogBrowser.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAoBtB;AApBD,WAAO,gBAAgB,EAAC,CAAC;IACrBA;QACIC,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAC9BA,MAAMA,CAACA,gBAAgBA,CAACA;QACxBA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,OAAOA;YACnC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,EAAC,kCAAkC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,EAAEA,GAAGA,UAASA,OAAOA;YAClC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,OAAOA,GAAGA,UAASA,OAAOA;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAClG,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;IACNA,CAACA;IAlBeD,qBAAIA,OAkBnBA,CAAAA;AACLA,CAACA,EApBM,gBAAgB,KAAhB,gBAAgB,QAoBtB"} {"version":3,"file":"console.browser.js","sourceRoot":"","sources":["console.browser.ts"],"names":["BeautylogBrowser","BeautylogBrowser.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAoBtB;AApBD,WAAO,gBAAgB,EAAC,CAAC;IACrBA;QACIC,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAC9BA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,OAAOA;YACnC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,EAAC,kCAAkC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,EAAEA,GAAGA,UAASA,OAAOA;YAClC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,OAAOA,GAAGA,UAASA,OAAOA;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAClG,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,MAAMA,CAACA,gBAAgBA,CAACA;IAC5BA,CAACA;IAlBeD,qBAAIA,OAkBnBA,CAAAA;AACLA,CAACA,EApBM,gBAAgB,KAAhB,gBAAgB,QAoBtB"}

View File

@ -2,7 +2,6 @@
module BeautylogBrowser { module BeautylogBrowser {
export function init() { export function init() {
var beautylogBrowser:any = {}; var beautylogBrowser:any = {};
return beautylogBrowser;
beautylogBrowser.log = function(message){ beautylogBrowser.log = function(message){
console.log('%c Log: %c ' + message,"background:#42A5F5;color:#ffffff","color:#42A5F5;"); console.log('%c Log: %c ' + message,"background:#42A5F5;color:#ffffff","color:#42A5F5;");
}; };
@ -18,5 +17,6 @@ module BeautylogBrowser {
beautylogBrowser.warn = function(message){ beautylogBrowser.warn = function(message){
console.log('%c Warn: %c ' + message,"background:#000000;color:#FB8C00;","color:#000000;"); console.log('%c Warn: %c ' + message,"background:#000000;color:#FB8C00;","color:#000000;");
}; };
return beautylogBrowser;
} }
} }

View File

@ -22,4 +22,6 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"',
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn'); beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
console.log(''); console.log('');
console.log('*** end test ***'); console.log('*** end test ***');
console.log("start test of beautylog browser module (Might look weird in is console...)");
beautyLogBrowser.log("hello");
//# sourceMappingURL=test.js.map //# sourceMappingURL=test.js.map

View File

@ -1 +1 @@
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,IAAI,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;AAC9C,IAAI,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;AAExD,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAClC,OAAO,CAAC,GAAG,CAAE,EAAE,CAAC,CAAC;AAEjB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC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6 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"','war
console.log (''); console.log ('');
console.log('*** end test ***'); console.log('*** end test ***');
console.log("start test of beautylog browser module (Might look weird in is console...)");
beautyLogBrowser.log("hello");