textutils: Use latest logging API
(cherry picked from commit bf7911152cef8686b4e7539097ea55055ce6e171)