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