import { dynamoEasyConfig } from '../config/dynamo-easy-config';
function getLogFn(className, modelClass, level) {
    return function (message, data) {
        dynamoEasyConfig.logReceiver({
            className: className,
            modelClass: modelClass,
            level: level,
            message: message,
            data: data,
            timestamp: Date.now(),
        });
    };
}
export function createLogger(className, modelClass) {
    return {
        warn: getLogFn(className, modelClass.name, 'warning'),
        info: getLogFn(className, modelClass.name, 'info'),
        debug: getLogFn(className, modelClass.name, 'debug'),
    };
}
//# sourceMappingURL=logger.js.map