从connect到express02-中间件morgan

  • 控制台输出请求日志

输出格式

  • 默认格式: dev, combined, tiny等
  • 自定义格式: morgan(':method :url :status :res[content-length] - :response-time ms')
  • 设置过滤输出请求
原文地址:https://www.cnblogs.com/jinkspeng/p/8597104.html