Details
Description
I am not sure why logger was removed as an item that is available to scriptable components from the configuration reference for ScriptableFilter and ScriptableHandler, a logging component is still made available to scripts, it is just a different type now that we have switched logging frameworks.
Since OPENIG-1201 we add a unique "logger" instance depending on the name of the script:
private Map<String, Object> enrichBindings(final Bindings source, final Context context) throws ScriptException { ..... bindings.put("logger", getScriptLogger()); ..... private Logger getScriptLogger() { return LoggerFactory.getLogger(format("%s.%s", this.getClass().getName(), name)); }