import type { ValueProvider } from '@nestjs/common';
import { Logger } from '@nestjs/common';

import { MIKRO_ORM_QUERY_LOGGER } from '../constants';

export const mikroOrmQueryLoggerProvider: ValueProvider = {
  provide: MIKRO_ORM_QUERY_LOGGER, //
  useValue: new Logger('mikro-orm'),
};
