@ogma/nestjs-module
Version:
A NestJS module for the Ogma logger
15 lines (14 loc) • 888 B
TypeScript
import { FactoryProvider } from '@nestjs/common';
import { OgmaWritableLevel } from '@ogma/common';
import { Ogma, OgmaOptions } from '@ogma/logger';
import { OgmaModuleOptions, Type } from './interfaces';
/**
* @internal
*/
export declare function createOgmaProvider(options?: Partial<OgmaOptions>): Ogma;
export declare function createOgmaServiceOptions(options: OgmaModuleOptions): OgmaModuleOptions;
export declare function createOgmaTraceOptions(options: OgmaModuleOptions): Lowercase<OgmaWritableLevel>;
export declare function createProviderToken(topic: string): string;
export declare function createRequestScopedProviderToken(topic: string): string;
export declare function createLoggerProviders(topic: string | (() => any) | Type<any>): FactoryProvider[];
export declare function createRequestScopedLoggerProviders(topic: string | (() => any) | Type<any>): FactoryProvider[];