How to access logger from lang-javascript

I have just started using lang-javascript for calculating a custom score,
and want to debug the script I have written. I checked out the following

Redirecting to Google Groups

and searched through elasticsearch documentation but am unable to figure
out how to log from within the lang-javascript script. Can anyone point to
any relevant documentation or give an example?


Please update your bookmarks! We have moved to

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit