smartlog-destination-local/ts/beautylog.browser.ts
2015-11-13 22:53:28 +01:00

22 lines
999 B
TypeScript

/// <reference path="./index.ts" />
module BeautylogBrowser {
export function init() {
var beautylogBrowser:any = {};
beautylogBrowser.log = function(message){
console.log('%c Log: %c ' + message,"background:#42A5F5;color:#ffffff","color:#42A5F5;");
};
beautylogBrowser.info = function(message){
console.log('%c Info: %c ' + message,'background:#EC407A;color:#ffffff;','color:#EC407A;');
};
beautylogBrowser.ok = function(message){
console.log('%c OK: %c ' + message,"background:#000000;color:#8BC34A;","color:#000000;");
};
beautylogBrowser.success = function(message){
console.log('%c Success: %c ' + message,"background:#8BC34A;color:#ffffff;","color:#8BC34A;");
};
beautylogBrowser.warn = function(message){
console.log('%c Warn: %c ' + message,"background:#000000;color:#FB8C00;","color:#000000;");
};
return beautylogBrowser;
}
}