Skip to content

Commit

Permalink
Add docs on flags to suppress bazel run tool information.
Browse files Browse the repository at this point in the history
This filters the command line output to only show the binary's output.

PiperOrigin-RevId: 392364638
  • Loading branch information
jin authored and copybara-github committed Aug 23, 2021
1 parent 2e723f2 commit bafa680
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/docs/user-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,19 @@ <h4 id='flag--run_under_run'><code class='flag'>--run_under=<var>command-prefix<
and cannot run under label.
</p>

<h4>Filtering logging outputs from Bazel</h4>

<p>
When invoking a binary with <code>bazel run</code>, Bazel prints logging output from Bazel itself
and the binary under invocation. To make the logs less noisy, you can suppress the outputs from
Bazel itself with the <code>--ui_event_filters</code> and <code>--noshow_progress</code> flags.
For example:

<pre>
bazel run --ui_event_filters=-info,-stdout,-stderr --noshow_progress //java/myapp:myapp
</pre>
</p>

<h3>Executing tests</h3>

<p>
Expand Down

0 comments on commit bafa680

Please sign in to comment.