#1351·chaosblade

how to adjust log level — chaosblade.log grows too large

Author: 915014921Created Sep 24, 2026Updated Sep 24, 2026

Description chaosblade.log takes up a lot of disk space on our hosts and we cannot find any way to lower the log level (e.g. to warn/error). The only logging-related flag the CLI offers is --debug, which makes logging more verbose rather than less.

Environment

  • chaosblade version: 1.8.0 (also reproducible on master)
  • OS: Linux x86_64

Current behavior

  1. All logs are written to /logs/chaosblade.log (not to the console), initialized via util.InitLog(util.Blade) in cli/cmd/command.go:142.
  2. The default log level is info, and InitLog only ever raises it to debug when --debug is set (chaosblade-spec-go/util/log.go):

Source: chaosblade-io/chaosblade