2015-09-26 17:34:01 +00:00
|
|
|
/// <reference path="./typings/tsd.d.ts" />
|
2015-11-13 21:53:28 +00:00
|
|
|
/// <reference path="./beautylog.classes.ts" />
|
|
|
|
/// <reference path="./beautylog.os.ts" />
|
2015-11-15 05:15:20 +00:00
|
|
|
/// <reference path="./beautylog.os.table.ts" />
|
2015-11-13 21:53:28 +00:00
|
|
|
/// <reference path="./beautylog.browser.ts" />
|
2015-11-01 21:00:07 +00:00
|
|
|
|
|
|
|
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;
|