2015-11-01 21:00:07 +00:00
|
|
|
/// <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;");
|
|
|
|
};
|
2015-11-01 21:07:29 +00:00
|
|
|
return beautylogBrowser;
|
2015-11-01 21:00:07 +00:00
|
|
|
}
|
|
|
|
}
|