smartlog-destination-local/ts/index.ts

21 lines
631 B
TypeScript
Raw Normal View History

2015-09-26 17:34:01 +00:00
/// <reference path="./typings/tsd.d.ts" />
2015-11-01 21:00:07 +00:00
/// <reference path="./console.os.ts" />
/// <reference path="./console.browser.ts" />
var beautylog = function(logPlatform:string = "os") {
switch (logPlatform) {
case "os":
var beautylogOs = BeautylogOS.init();
return beautylogOs;
break;
case "browser":
var beautylogBrowser = BeautylogBrowser.init();
return beautylogBrowser;
break;
default:
console.log("something is strage about the way you required beautylog");
break;
2015-09-20 19:45:37 +00:00
}
2015-09-20 17:21:29 +00:00
};
2015-11-01 21:00:07 +00:00
module.exports = beautylog;