Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

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


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?



4 Replies


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.


Please assist me regarding following concept.




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

Arun Patidar