WSO2 – How to log in Javascript mediator
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”); </script>