/
dimono39
/
education-analytics
Обзор
Документация
Войти
/
dimono39
/
education-analytics
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
education-analytics
/
node_modules
/
morgan
/
..
HISTORY.md
добавил файлы
8 месяцев назад
LICENSE
добавил файлы
8 месяцев назад
README.md
добавил файлы
8 месяцев назад
index.js
добавил файлы
8 месяцев назад
package.json
добавил файлы
8 месяцев назад
morgan
Installation
API
morgan(format, options)
Using a predefined format string
Using format string of predefined tokens
Using a custom format function
Options
immediate
skip
stream
Predefined Formats
combined
common
dev
short
tiny
Tokens
Creating new tokens
:date[format]
:http-version
:method
:referrer
:remote-addr
:remote-user
:req[header]
:res[header]
:response-time[digits]
:status
:total-time[digits]
:url
:user-agent
morgan.compile(format)
Examples
express/connect
vanilla http server
write logs to a file
single file
log file rotation
split / dual logging
use custom token formats
License
README.md