Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

shridhar_sahu
Level 3
Level 3

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

4 Replies
shridhar_sahu
Level 3
Level 3

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

Arun_Patidar
Community Advisor
Community Advisor

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