As you are using Use API, which is actually converted into JAVA instead of loading as a JS in a browser, you have to use JAVA object to log the information. Below code is working fine on my local.
log.info("Using USE API");
Also this log will be generated in server log files instead of browser conso...