@inward/extension-logging
Version:
LoopBack Logging for Winston and Fluentd
17 lines (16 loc) • 436 B
TypeScript
/**
* `@logInvocation` decorator for method invocations.
*
* @example
* ```ts
* import {logInvocation} from '@inward/extension-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;