From the gateway context (e.g. via system.util.getContext
) you can get the logging manager and then query for log events; this will be the same view of log events provided by the logging web interface, and thus is missing anything logged to stdout
or stderr
of the Java process, which is captured in the wrapper log.
So, pros: more direct and structured access, cons: less events visible.