# Logging to a file but not to standard out

**URL:** https://discourse.paraview.org/t/logging-to-a-file-but-not-to-standard-out/12601
**Category:** ParaView Support
**Created:** [July 28, 2023, 9:29pm UTC](https://discourse.paraview.org/t/logging-to-a-file-but-not-to-standard-out/12601 "2023-07-28T21:29:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mclarsen](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@mclarsen](https://discourse.paraview.org/u/mclarsen)
#### Post date: [July 28, 2023, 9:29pm UTC](https://discourse.paraview.org/t/logging-to-a-file-but-not-to-standard-out/12601/1 "2023-07-28T21:29:37Z")

</div>

I would like to output paraview logs to a file, but without them appearing in standard out. Is this possible?

I tried something like this, but I get the logs in both in the terminal and the file:

```auto
env PARAVIEW_LOG_PIPELINE_VERBOSITY=INFO /usr/local/opt/paraview_egl/bin/pvbatch -l /tmp/pvlogs

```

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [July 31, 2023, 12:47pm UTC](https://discourse.paraview.org/t/logging-to-a-file-but-not-to-standard-out/12601/2 "2023-07-31T12:47:06Z")

</div>

You can set the verbosity of each log file as well as the standard output separately. The `-l`/`--log` option allows you to add a `,` after the filename followed by a log level. Likewise, the `-v`/`--verbosity` option sets the log level for the standard output but not the log files.

```bash
env PARAVIEW_LOG_PIPELINE_VERBOSITY=INFO \
  /usr/local/opt/paraview_egl/bin/pvbatch \
    --log /tmp/pvlogs,INFO --verbosity WARNING \
    myscript.py

```
