1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-17 07:45:52 +01:00
verdaccio/website/translated_docs/zh-Hans/logger.md
verdacciobot 4a6383d05f New Crowdin translations (#823)
* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Chinese Simplified)
docs(website): new translations

* New translations config.md (Portuguese, Brazilian)
docs(website): new translations

* New translations logger.md (Chinese Simplified)
docs(website): new translations

* New translations notifications.md (Chinese Simplified)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations docker.md (Chinese Simplified)
docs(website): new translations

* New translations config.md (Chinese Simplified)
docs(website): new translations

* New translations docker.md (Portuguese, Brazilian)
docs(website): new translations

* New translations config.md (Portuguese, Brazilian)
docs(website): new translations
2018-07-21 16:34:10 +02:00

1.1 KiB
Raw Blame History

id title
记录器 记录器

和任何网页应用程序一样, verdaccio 有可自定义的内置记录器。您可以定义多种输出类型。

logs:
  # 控制台输出
  - {type: stdout, format: pretty, level: http}
  # 文件输出
  - {type: file, path: verdaccio.log, level: info}

SIGUSR2 来通知应用程序此log-file 已循环,需要重新打开它。

配置

属性 类型 必填 范例 支持 描述
type string No [stdout, file] all 定义输出
path string No verdaccio.log all 如果类型为文件,请定义该文件的位置
format string No [pretty, pretty-timestamped] all 输出格式
level string No [fatal, error, warn, http, info, debug, trace] all 详细级别