It seems platformsdirs uses the new XDG_STATE_HOME to store log files (spec) since v2.6.
This is a breaking change, and I will remedy it by deferring to the old XDG_CACHE_HOME/log, and pinning platformdirs since they seem to have breaking changes willy nilly.
Fixes https://github.com/ActivityWatch/activitywatch/issues/914 Based on https://github.com/iterative/dvc/pull/9131