Cute little (obvious) trick I thought of yesterday...
# suitescript
a
Cute little (obvious) trick I thought of yesterday. For those who prefer using the syntax of console.log over log.debug (like for example if you use turbo console log extension in vscode or if you like being consistent in your sytnax so you can copy code straight from your IDE to the chrome browser for testing without changing every log.debug to console.log) You can simply enter this code at the beginning of any server script and voilĂ  you can now use the syntax of console.log (still of course seeing your logs in the execution in the script deployments)
Copy code
var console = { log: log.debug }
If you are really devoted to this, you can even make a custom module that does this (and for the other log functions as well, such as log.error) so you don't need to write this code on every script, just import a custom console module.