If you’re working with a Javascript script mediator in WSO2 and wan’t to log to the console / logfile for debugging you just need to do the following:

<script language="js">

var log = mc.getServiceLog();
log.info("Logging inside Script Mediator");


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>