These are the next two commits from #25203.
-
Add
LogPrintfCategory
to log unconditionally while prefixing the output with the passed category name. Add documentation and a unit test, and update thelint-logs.py
andlint-format-strings.py
scripts. -
Replace the log messages that manually print a category, with
LogPrintfCategory
. In upcoming commits, it will likely be used in many other cases, such as to replaceLogPrintf
where it makes sense.