Logging from Groovy in Elasticsearch
When working on the fulltext indexing for the Elasticsearch integration for Neos I recently needed a way to debug what was going on inside a Groovy script we use. It's relatively simple, if you know how…
As soon as such a need arises, finding the solution with a quick internet search yields a quick result along these lines:
import org.elasticsearch.common.logging.*;
ESLogger logger=ESLoggerFactory.getLogger('some.identifier');
logger.info('Ah, a log message!');
Karsten Dambekalns