# tf.compat.v1.logging.set_verbosity

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/platform/tf_logging.py#L354-L357) |

Sets the threshold for what messages will be logged.

    tf.compat.v1.logging.set_verbosity(
        v
    )