# ContextMiddleware Class

Module
import { ContextMiddleware } from "@tsed/common"
Source/packages/common/src/server/components/contextMiddleware.ts

# Overview

class ContextMiddleware {
    level: "debug" | "info" | "warn" | "error" | "off" | undefined;
    maxStackSize: number;
    ignoreUrlPatterns: string[];
    reqIdBuilder: any;
    constructor(injector: InjectorService);
    static onClose(err: any, response: any): Promise<void>;
    use(request: any, response: any, next: any): Promise<void>;
}

# Members

level: "debug" | "info" | "warn" | "error" | "off" | undefined

maxStackSize: number

ignoreUrlPatterns: string[]

reqIdBuilder: any

static onClose(err: any, response: any): Promise<void>

use(request: any, response: any, next: any): Promise<void>