"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.setInstance = setInstance;
exports.getInstance = getInstance;
const node_1 = __importDefault(require("./logger/node"));
let instance;
/**
 * Sets the logger instance. For internal use only.
 */
function setInstance(newInstance) {
    instance = newInstance;
}
/**
 * Returns the current logger instance.
 * @deprecated
 *
 * In TypeScript, use default import:
 * ```
 *  import Logger from './Logger';
 *  Logger().info(...)
 * ```
 *
 * In JavaScript, use:
 * ```
 *  const Logger = require('./Logger').default;
 *  Logger().info(...)
 * ```
 */
function getInstance() {
    if (!instance) {
        instance = new node_1.default();
    }
    return instance;
}
exports.default = () => getInstance();
//# sourceMappingURL=logger.js.map