Set the file name of DBT Log file as invocation_id.log

Hi All,

I am trying to set the log file’s name as {{invocation_id}}.log. I came across the variable name {{invocation_id}} and “log-path” config. But log-path sets the directory name. Is it possible to set the log file name as {{invocation_id}}.log?! It would be good to collect the logs for a particular day under a directory, like given below.

-dbt_logs → date in YYYYMMDD format → {{invocation_id}}.log

Example:

  • dbt_logs → 20230123 → 0baeae28-0b43-4b58-8de2-66acdd302efe.log