"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
exports.formattedLog = formattedLog;
const tslib_1 = require("tslib");
const winston_1 = tslib_1.__importDefault(require("winston"));
class Logger extends winston_1.default.Logger {
}
exports.Logger = Logger;
function formattedLog(logger, { level, message, at: { location, function: fnName }, data }) {
    if (logger) {
        logger[level]({
            at: `${location}#${fnName}`,
            message,
            ...data,
        });
    }
}
//# sourceMappingURL=LogUtils.js.map