Report errors/warnings

When the evaluation fails, a message is displayed in the Console view with a complete stack trace.

You may want to report additional errors/warnings, or debug information. A Logger can be used for that task. It is accessible from an evaluation context using the getLogger() method.