import { Inject } from '@nestjs/common' ; import { createProviderToken , createRequestScopedProviderToken } from '../ogma.provider' ; import { Type } from '../interfaces' ; export const OgmaLogger = ( topic ) => Inject ( createProviderToken ( typeof topic === 'function' ? topic . name : topic ) ) ; export const OgmaLoggerRequestScoped = ( topic ) => Inject ( createRequestScopedProviderToken ( typeof topic === 'function' ? topic . name : topic ) ) ;