# 日志

# logs.level

logs.level: number = 3

enum LogLevel {
  Trace = 0,
  Debug = 1,
  Info = 2,
  Warn = 3,
  Error = 4
}

Balm 任务日志级别。

# logs.formatOptions

logs.formatOptions: object = {}

Node.js - util.inspect(object[, options]). 详细配置 (opens new window)

🌰 举个栗子:

module.exports = {
  logs: {
    level: 2 // 设置级别越小,日志越详细
  }
  // 其他配置项...
};
Last Updated: 4 years ago