UNPKG

@ogma/nestjs-module

Version:

A NestJS module for the Ogma logger

16 lines (15 loc) 498 B
import { OgmaWritableLevel } from '@ogma/common'; import { OgmaOptions } from '@ogma/logger'; export type OgmaModuleOptions = Partial<OgmaOptions> & { traceMethod?: Lowercase<OgmaWritableLevel>; /** * determine if extra metadata in the interceptor should be added to the logged line */ inlineMeta?: boolean; }; export type Type<T> = new (...args: any[]) => T; export interface OgmaInterceptorServiceOptions { json: boolean; color: boolean; inlineMeta?: boolean; }