LogListener or LogMonitor in AEM

Avatar

Avatar

SunilChowdhary

Avatar

SunilChowdhary

SunilChowdhary

06-02-2019

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

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

06-02-2019

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

Avatar

SunilChowdhary

Avatar

SunilChowdhary

SunilChowdhary

06-02-2019

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..