smartlog-destination-local/dist/index.js
2016-05-02 01:41:21 +02:00

21 lines
2.1 KiB
JavaScript

/// <reference path="./typings/main.d.ts" />
"use strict";
var plugins = require("./beautylog.plugins");
var BeautylogNode = require("./beautylog.node");
var 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;
}
module.exports = beautylog;
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0Qzs7QUFFNUMsSUFBWSxPQUFPLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUMvQyxJQUFZLGFBQWEsV0FBTSxrQkFBa0IsQ0FBQyxDQUFBO0FBQ2xELElBQVksZ0JBQWdCLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUN4RCxJQUFJLFNBQVMsQ0FBQztBQUNkLE1BQU0sQ0FBQSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBTSxFQUFFLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztJQUMxQyxLQUFLLE1BQU07UUFDUCxTQUFTLEdBQUcsYUFBYSxDQUFDO1FBQzFCLEtBQUssQ0FBQztJQUNWLEtBQUssU0FBUztRQUNWLFNBQVMsR0FBRyxnQkFBZ0IsQ0FBQztRQUM3QixLQUFLLENBQUM7SUFDVjtRQUNJLE9BQU8sQ0FBQyxHQUFHLENBQUMsMkVBQTJFLENBQUMsQ0FBQztRQUN6RixLQUFLLENBQUM7QUFDZCxDQUFDO0FBRUQsaUJBQVMsU0FBUyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5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