milvus-logo
Star
0
Forks
0
快速开始

Log-related Configurations

Milvus Docs 需要你的帮助

本文档暂时没有中文版本,欢迎你成为社区贡献者,协助中文技术文档的翻译。
你可以通过页面右边的 编辑 按钮直接贡献你的翻译。更多详情,参考 贡献指南。如需帮助,你可以 提交 GitHub Issue

This topic introduces the log-related configurations of Milvus.

Using Milvus generates a collection of logs. By default, Milvus uses logs to record information at debug or even higher level for standard output (stdout) and standard error (stderr).

Under this section, you can configure the system log output.

log.level

Description Default Value
  • Milvus log level.
  • Option: debug, info, warn, error, panic, and fatal
  • It is recommended to use debug level under test and development environments, and info level in production environment.
  • debug

    log.file.rootPath

    Description Default Value
  • Root path to the log files.
  • The default value is set empty, indicating to output log files to standard output (stdout) and standard error (stderr).
  • If this parameter is set to a valid local path, Milvus writes and stores log files in this path.
  • Set this parameter as the path that you have permission to write.
  • ""

    log.file.maxSize

    Description Default Value
  • The maximum size of a log file.
  • Unit: MB
  • 300

    log.file.maxAge

    Description Default Value
  • The maximum retention time before a log file is automatically cleared.
  • Unit: day
  • The minimum value is 1.
  • This parameter takes effect only after the valid log.file.rootPath is set.
  • 10

    log.file.maxBackups

    Description Default Value
  • The maximum number of log files to back up.
  • Unit: day
  • The minimum value is 1.
  • This parameter takes effect only after the valid log.file.rootPath is set.
  • 20

    log.format

    Description Default Value
  • Milvus log format.
  • Option: text and JSON
  • text
    该页面是否对你有帮助?
    本页目录