Use of OSGI -> Log Service(system/console/logs)

Avatar

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
shridhar_sahu
Level 2

05-08-2019

Hi Team,

I have gone through various documentation and couldn't find any useful documentation about what we can  osgi log service.

As per my understanding we have  osgi -> log service, sling -> log support, status -> log files where we can find logging in AEM.

WebConsole -> Sling -> log Support(http://localhost:4502/system/console/slinglog)  : Here we can configure new/existing log files  and can set log levels(info, warn, trace) Web Console -> Status -> log Files(http://localhost:4502/system/console/status-slinglogs) : Here we can will find a list of summary of all log files and there respective log. Web Console -> OSGI -> Log Service (http://localhost:4502/system/console/logs 😞 It always show empty.

Can anyone assist me about when to use  OSGI -> Log Service? What kind of logs can we capture over here? Any documentation with respect to osgi -> log service?

Regards,

Shridhar

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,327 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,327 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

05-08-2019

Avatar

Avatar
Seeker
Level 2
webcoholic
Level 2

Likes

8 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Seeker
Give Back 5
Give Back 3
Give Back
Engage 1
View profile

Avatar
Seeker
Level 2
webcoholic
Level 2

Likes

8 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Seeker
Give Back 5
Give Back 3
Give Back
Engage 1
View profile
webcoholic
Level 2

06-08-2019

Refer Logging

Avatar

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
shridhar_sahu
Level 2

Likes

3 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
shridhar_sahu
Level 2

08-08-2019

Hi Arun,

I have gone through the documentation. Still Haven't clear few things.

When to use Apache Sling Logger Service and when to use Apache Felix logs(org.osgi.service.log.Logger)?

As per my understanding ,

Apache Sling Logger Service can be used for logging components(Sling models, sling servlets, etc), as shown

protected final Logger log = LoggerFactory.getLogger(this.getClass());

log.info(" logging configuration service");

Apache Felix Log(org.osgi.service.log.Logger) -I don't know when to use it

Also when i go to following path in web console( webconsole -> osgi tab -> log )It always show empty and log service is running.

1809387_pastedImage_2.png

Please assist me regarding following concept.

Regards,

Shridhar

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,327 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,327 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-08-2019

you will see the logs only if you will implement logging as mentioned in article.

AFAIK, we don't use this feature to check any kind of logs