When working with a scratch org within VSCode, I periodically setup a simple file to test out various Apex commands, etc. I will setup the Apex script and the use VSCode's command palette to run the command "SFDX: Execute Anonymous Apex with Editor Contents" . The execution output is presented in the "Output" panel in VSCode.
That output is the debug log from the execution of my Apex script, but it would appear that the logging level varies depending on various things. In one execution, the output appears to be barely outputting anything. It is consistent with what I would expect to see if I setup a debug logging level with only "ERROR" threshold levels on various outputs.
Then I can go to the Developer console within the org. When I re-run the same script within VSCode and I notice that the output debugging level is higher. Clearly, the activation of Developer console sets up the new logging level and the VSCode output responds to this logging level instead.
So how do we preset the logging level that can be accessible to VSCode? Any suggestions?