Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jperl
Created February 22, 2019 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jperl/6ce671ecb36cce99d41f6dc8964acf41 to your computer and use it in GitHub Desktop.
Save jperl/6ce671ecb36cce99d41f6dc8964acf41 to your computer and use it in GitHub Desktop.
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