"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formattedLog = exports.Logger = void 0;
var tslib_1 = require("tslib");
var winston_1 = tslib_1.__importDefault(require("winston"));
var Logger = (function (_super) {
    tslib_1.__extends(Logger, _super);
    function Logger() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Logger;
}(winston_1.default.Logger));
exports.Logger = Logger;
function formattedLog(logger, _a) {
    var level = _a.level, message = _a.message, _b = _a.at, location = _b.location, fnName = _b.function, data = _a.data;
    if (logger) {
        logger[level](tslib_1.__assign({ at: "".concat(location, "#").concat(fnName), message: message }, data));
    }
}
exports.formattedLog = formattedLog;
//# sourceMappingURL=LogUtils.js.map