Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/uinv/src/middlewares.ts>getLogMiddleware

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function getLogMiddleware
import { getLogMiddleware } from "https://deno.land/x/deno_nest@v3.6.2/modules/uinv/src/middlewares.ts";

The difference between LogInterceptor and LogMiddleware is that the latter can capture 404 errors, and it include the guard time.

Parameters

optional
options: { logger?: Logger; logLevel?: "info" | "debug"; isHeaderResponseTime?: boolean; }