Try this command on the fly:
export SF_LOG_LEVEL=trace
After rebooting your terminal that environment variable will be reset. to keep the changes, edit the .zprofile, in case you are using zsh, or the equivalent file in your home, and add the same line:
export SF_LOG_LEVEL=<code>trace
Remember to reboot your terminal (open and close) after modifying that file.
Check if the environment variable was written properly:
echo $SF_LOG_LEVEL
You should see “trace” or the value you provided