Expand my Community achievements bar.

LogListener or LogMonitor in AEM

Avatar

Level 1

Is there anyway to listen to any exception logged to error.log using LogListener or any other way ?

2 Replies

Avatar

Level 10

OOTB - logging functionality for AEM is documented here -- Logging

To do what you are describing would require custom functionality using https://osgi.org/javadoc/r4v42/org/osgi/service/log/LogListener.html .

Avatar

Level 1

With LogListener I am able to listen to any error (reference unsatisfied etc)  during bundle start / installation but not when there is a runtime exception in code..