See if the following IBM Worklight Information Center articles help you out:
- Logging and monitoring mechanisms
- Enabling trace for adapters in an Eclipse-hosted server
Methods WL.Logger.debug, error, and log (logging methods for server-side code)
In JavaScript you can use
WL.Logger
- In Java you can use
logger.info
orlogger.warning
by importingjava.util.logging.Logger
logger.info
or logger.warning
will be printed to the Eclipse Worklight console.
System.Out.println()
is dependent on the application server you are using and is not in the control of Worklight.
This can be seen in action in the Using Java in Adapters training module from the IBM Worklight Getting Started page.