GET/bla--ms--在NodeJs控制台中是什么意思? [英] What does GET /bla - - ms - - mean in NodeJs console?
本文介绍了GET/bla--ms--在NodeJs控制台中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我进入NodeJS应用程序中的/bla
页面时,控制台将打印出
When I go to the page /bla
in my NodeJS app, the console prints out
GET /bla - - ms - -
用字词(为了方便Google搜索),破折号ms破折号
.
In words (for easier Google searches), dash dash ms dash dash
.
这是什么意思?
推荐答案
这是 morgan 的输出,这是用于node.js的HTTP请求记录器中间件.
This is the output from morgan, a HTTP request logger middleware for node.js.
默认情况下,它将所有请求记录到控制台.根据您的配置,它将显示与请求不同的数据.
It logs all requests, by default, to the console. Depending on your configurations it will display different data from the request.
如果您使用默认格式(dev),则显示的数据为:
If you are using the default format (dev), the data displayed is:
:method :url :status :response-time ms - :res[content-length]
这篇关于GET/bla--ms--在NodeJs控制台中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文