UNPKG

@inward/extension-logging

Version:

LoopBack Logging for Winston and Fluentd

12 lines (11 loc) 535 B
import { Interceptor, InvocationContext, Provider, ValueOrPromise } from '@inward/context'; import { Logger } from 'winston'; /** * A local interceptor that provides logging for method invocations. */ export declare class InvocationLoggingInterceptor implements Provider<Interceptor> { private logger; constructor(logger: Logger); value(): <T>(invocationCtx: InvocationContext, next: () => ValueOrPromise<T>) => Promise<T>; intercept<T>(invocationCtx: InvocationContext, next: () => ValueOrPromise<T>): Promise<T>; }