UNPKG

@dynatrace/cordova-plugin

Version:

This plugin gives you the ability to use the Dynatrace instrumentation in your hybrid application (Cordova, Ionic, ..). It uses the Mobile Agent, the JavaScript Agent. The Mobile Agent will give you all device specific values containing lifecycle informat

30 lines (29 loc) 896 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Logger = void 0; var FileLogger_1 = require("./FileLogger"); var BaseLogger_1 = require("./BaseLogger"); var LoggerType_1 = require("./LoggerType"); var Logger = (function () { function Logger() { } Logger.getInstance = function () { if (!this.instance) { this.setType(LoggerType_1.LoggerType.FileLogger, false); } return this.instance; }; Logger.setType = function (loggerType, debug) { if (loggerType === LoggerType_1.LoggerType.FileLogger) { this.instance = new FileLogger_1.FileLogger(debug); } else { this.instance = new BaseLogger_1.BaseLogger(debug); } }; Logger.setLogger = function (logger) { this.instance = logger; }; return Logger; }()); exports.Logger = Logger;