#21310·vitess

Feature Request: Remove `glog` logging support

Author: mhamza15Created Sep 30, 2026Updated Sep 30, 2026
LabelsType: FeatureComponent: Observability

Feature Description

glog was deprecated in v24, when structured slog logging became the default, with removal planned for v25. We can now remove it.

  • Drop the github.com/golang/glog dependency.
  • Remove log.V, log.Level, and log.Flush. Convert V-level call sites to log.Debug.
  • Remove TrickGlog, the -v shorthand workaround, and glog log-file purging in logutil.
  • Remove these flags from all binaries.
    • --log-structured
    • --log-rotate-max-size
    • --logtostderr, --alsologtostderr, --stderrthreshold
    • --log_dir, --log_link, --log_backtrace_at
    • --v, --vmodule, --logbuflevel
    • --keep-logs, --keep-logs-by-mtime, --purge-logs-interval
  • Update examples, flag snapshots, and the v25 release notes.

After removal, passing any of these flags makes a binary fail with unknown flag. Downstream projects must stop passing them before they run v25.

  • vitess-operator sets logtostderr: true for vtgate, vttablet, vtctld, vtorc, and vtadmin, and alsologtostderr: true for vtadmin (pkg/operator/*/deployment.go, pkg/operator/vttablet/flags.go). Its own manifests and test scripts also pass --logtostderr to the operator and to vtctldclient.
  • arewefastyet passes --alsologtostderr and --log_dir to vttablet, mysqlctld, vtgate, and vtctld in its Ansible templates (ansible/roles/*/templates).

Both need to change before or together with the Vitess v25 release.

Use Case(s)

Complete the glog deprecation announced in v24.