How to set output directory not using the flag?
xcollantes opened this issue · comments
Xavier Collantes commented
Apologies if I missed it but I don't see a way to set the output directory in the code itself.
Yilei Yang commented
Try absl.logging.get_absl_logger().use_absl_log_file(log_dir=<directory>)
, once this is called, your logs should be saved to this directory (unless you also parse absl flags and user specifies --logtostderr
).
Does this work for you?
(Note: absl.logging is built on top of standard logging, but it isn't a drop-in replacements and has different APIs due to historical reasons.)
Yilei Yang commented
Closing due to inactivity. Feel free to reopen if still needed.