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;
|