Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogMiddleware

Simple middleware that applies the morgan middleware, injected with the log module's httpStream. This will write all http logs from the app to Winston's http stream.

Hierarchy

  • LogMiddleware

Implements

  • NestMiddleware

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private log

Methods

use

  • use(req: Request, res: Response, next: NextFunction): void
  • Call morgan middleware, writing all logs to the http stream

    Parameters

    • req: Request
    • res: Response
    • next: NextFunction

    Returns void

Generated using TypeDoc