How to parse warnings from latex_document build in Bazel
When I use latex_document to build a PDF document in Bazel, I can see a *.log file in the sandbox directories outside the bazel-bin that contains e.g. warnings from the latex build. What is the best practice to parse these warnings so they get available to the build so that I can fail the build for a specific set or warnings?
I'm running Bazel 7.4.