Function logger

  • Logger middleware that logs the name of the method being called.

    Parameters

    • ctx: Context

      The context in which the middleware operates.

    • args: any[]

      Arguments provided to the original method.

    • next: ((newArgs) => Promise<any>)

      The next function in the middleware chain.

        • (newArgs): Promise<any>
        • The next function in the middleware chain.

          Parameters

          • newArgs: any[]

          Returns Promise<any>

    Returns Promise<void>

    A promise that resolves after logging and executing the next function in the chain.

Generated using TypeDoc