LogListener or LogMonitor in AEM

Avatar

Avatar
Level 1
SunilChowdhary
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
SunilChowdhary
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
SunilChowdhary
Level 1

06-02-2019

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

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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
Level 1
SunilChowdhary
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
SunilChowdhary
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
View profile
SunilChowdhary
Level 1

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