Search code examples
loggingibm-mobilefirstworklight-adaptersworklight-server

Worklight 5.0.6.1 - System.out.println() logging from Worklight adapter is not working


I've installed Worklight 5.0.6.1 and when invoking Java code from my adapter I don't see the log output in the workspace\WorklightServetrHome\project\logs log files.

I'm using System.out.println(). Any advice why this worked successfully in previous releases of Worklight, and is not working in v5.0.6.1? What the property settings to allow System output from Java code in Worklight that need to be set?

FYI: Thinking it might be a bad install I re-installed a second time, and with the same result. The code prior to, and after the System.out.println() calls is executing correctly so I'm sure the statement is being executed.


Solution

  • See if the following IBM Worklight Information Center articles help you out:

    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.