smartlog-destination-local/ts/index.ts

23 lines
733 B
TypeScript
Raw Normal View History

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:
2015-12-02 15:23:39 +00:00
console.log("something is strange about the way you required beautylog");
2015-11-01 21:00:07 +00:00
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;