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/glogdependency. - Remove
log.V,log.Level, andlog.Flush. Convert V-level call sites tolog.Debug. - Remove
TrickGlog, the-vshorthand workaround, and glog log-file purging inlogutil. - 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: truefor vtgate, vttablet, vtctld, vtorc, and vtadmin, andalsologtostderr: truefor vtadmin (pkg/operator/*/deployment.go,pkg/operator/vttablet/flags.go). Its own manifests and test scripts also pass--logtostderrto the operator and tovtctldclient. - arewefastyet passes
--alsologtostderrand--log_dirto 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.
Source: vitessio/vitess