📜  摩根日志与自定义 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:55.253000             🧑  作者: Mango

代码示例1
//Create a new named format
morgan.token("custom", ":http-version (:method) :url => :status")
//use the new format by name
app.use(morgan(‘custom’))Copy