Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.logging.log_if

tf.logging.log_if(
    level,
    msg,
    condition,
    *args
)

Defined in tensorflow/python/platform/tf_logging.py.

Log 'msg % args' at level 'level' only if condition is fulfilled.