Skip to content

Instantly share code, notes, and snippets.

@jperl
Created February 22, 2019 00:06
Absl Logging
FLAGS = flags.FLAGS
if FLAGS.log_dir:
if not os.path.exists(FLAGS.log_dir):
os.makedirs(FLAGS.log_dir)
logging.get_absl_handler().use_absl_log_file()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment