smartlog-destination-local/ts/index.ts

21 lines
554 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-05-01 23:41:21 +00:00
import * as plugins from "./beautylog.plugins";
import * as BeautylogNode from "./beautylog.node";
import * as BeautylogBrowser from "./beautylog.browser";
let beautylog;
2016-02-23 13:34:40 +00:00
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;