<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def config_logging(debug: bool = False) -> None: """Set-up application and `tensorflow` logging. :param debug: show or hide debug messages """

    if debug:
        level = 'DEBUG'
        tf_level = tf.logging.INFO
    else:
        level = 'INFO'
        tf_level = tf.logging.ERROR

    logging_config = config_dict('logging.json')
    for logger in logging_config['loggers'].values():
        logger['level'] = level

    logging.config.dictConfig(logging_config)
    tf.logging.set_verbosity(tf_level)