smartlog-destination-local/ts/index.ts

20 lines
556 B
TypeScript
Raw Normal View History

2016-02-02 15:49:16 +00:00
/// <reference path="./typings/main.d.ts" />
2015-11-01 21:00:07 +00:00
2016-02-23 13:34:40 +00:00
import plugins = require("./beautylog.plugins");
import BeautylogNode = require("./beautylog.node");
import BeautylogBrowser = require("./beautylog.browser");
var beautylog;
switch(plugins.smartenv.getEnv().runtimeEnv) {
case "node":
beautylog = BeautylogNode;
break;
case "browser":
beautylog = BeautylogBrowser;
break;
default:
console.log("something is strange about the platform in which you try to use beautylog");
break;
}
export = beautylog;