title: How to log a string in a postgres plv8 procedure?
body: <p>I am trying to print a sql query using plv8.elog() in a plv8 procedure. </p>
  
  <pre><code>plv8.elog(NOTICE, 'Notice:', str);
  </code></pre>
  
  <p>I don't know why but I am unable to see any output on the console. I searched for the possible solution and found a useful information that plv8 can print a string up to max length 512 characters. Link is given below.</p>
  
  <p><a href="http://code.google.com/p/plv8js/issues/detail?id=78" rel="nofollow noreferrer">http://code.google.com/p/plv8js/issues/detail?id=78</a>  </p>
  
  <p>For verifying this I tried to print same string with str.slice</p>
  
  <pre><code>    plv8.elog(NOTICE, 'Notice:', str.slice(0,512));
  </code></pre>
  
  <p>This time I can see the log output as expected. Can someone please suggest, How can we log string having more than 512 characters?</p>