I am using hydra version 1.2. I changed the default working directory of hydra to another directory. Now I want to save hydra generated log file in some other directory. How can I do that?
Currently, the log file is saved on the current working directory and I couldn't find a way to define a directory where I can save the log file.
You can configure the Hydra run dir by overriding it in a custom config file. See the documentation here: https://hydra.cc/docs/configure_hydra/workdir/ for more information.
Below is a simplified example of how I did it where
nameis something I plan to use in other places of my config.You can test if it's working by using the
HydraConfigimport like so: