UNPKG

@loopback/logging

Version:

An extension exposes logging for Winston and Fluentd with LoopBack 4

17 lines (16 loc) 428 B
/** * `@logInvocation` decorator for method invocations. * * @example * ```ts * import {logInvocation} from '@loopback/logging'; * * export class HelloController { * @logInvocation() * hello(name: string) { * return `Hello, ${name}`; * } * } * ``` */ export declare function logInvocation(): (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any;