title: Cannot log values using Logger in google app script
body: <p>Here is my HTML code, from where I call the function <code>loadClient</code> when load button is clicked,</p>
  
  <pre><code>//LOAD CLIENT BUTTON`
  document.getElementById("load_button").addEventListener('click',function(){
  google.script.run.loadClient();
  });
  </code></pre>
  
  <p>here is the respective function in the code.gs file</p>
  
  <pre><code>//function02-loadClient
  function loadClient() {
      eval(UrlFetchApp.fetch('https://apis.google.com/js/api.js').getContentText());
      return gapi.client.load("https://content.googleapis.com/discovery/v1/apis/webmasters/v3/rest")
         .then(function() { Logger.log("GAPI client loaded for API"); },
                function() { Logger.log("Error loading GAPI client for API" ); });
  }
  </code></pre>