abseil / abseil-py

Abseil Common Libraries (Python)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set output directory not using the flag?

xcollantes opened this issue · comments

Apologies if I missed it but I don't see a way to set the output directory in the code itself.

My issue: https://stackoverflow.com/q/70637368/8278075

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.)

Closing due to inactivity. Feel free to reopen if still needed.