"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const dynamo_easy_config_1 = require("../config/dynamo-easy-config");
function getLogFn(className, modelClass, level) {
    return (message, data) => {
        dynamo_easy_config_1.dynamoEasyConfig.logReceiver({
            className,
            modelClass,
            level,
            message,
            data,
            timestamp: Date.now(),
        });
    };
}
function createLogger(className, modelClass) {
    return {
        warn: getLogFn(className, modelClass.name, 'warning'),
        info: getLogFn(className, modelClass.name, 'info'),
        debug: getLogFn(className, modelClass.name, 'debug'),
    };
}
exports.createLogger = createLogger;
//# sourceMappingURL=logger.js.map