[ 
https://issues.apache.org/jira/browse/SLING-9780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205425#comment-17205425
 ] 

Robert Munteanu commented on SLING-9780:
----------------------------------------

Here's what I found so far

- the webconsole page makes a {{POST}} call to the {{LogServlet}} to retrieve 
the logging data
- the {{LogServlet}} renders the data ( 
https://github.com/apache/felix-dev/blob/b91688862f39bf89c87e019ccf81653bb7ec12a1/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/LogServlet.java#L85-L118
 ) based on the {{org.osgi.service.log.LogReaderService}} service
- this service is not deployed in the Sling Starter ( checked 
http://localhost:8080/system/console/services )
- we do deploy the {{org.osgi.service.log}} bundle, which exports the 
{{org.osgi.service.log}} package, but apparently no services

[~cziegeler] - I know you did some work around the logging bundles for Sling, 
maybe you can point me where should I investigate next?

> Log webconsole page does not work after switching to the feature model
> ----------------------------------------------------------------------
>
>                 Key: SLING-9780
>                 URL: https://issues.apache.org/jira/browse/SLING-9780
>             Project: Sling
>          Issue Type: Bug
>          Components: Starter
>    Affects Versions: Starter 12
>         Environment: Java 11 and 13 on MacOS
>            Reporter: Hans-Peter Stoerr
>            Priority: Minor
>             Fix For: Starter 12
>
>         Attachments: LogserviceNotRunning.png, Starter11-HasLogService.png, 
> Starter12-NoLogService.png
>
>
> In the current Sling Starter 12 snapshot the OSGI Log Service does not work 
> properly. This has the effect that in the console at OSGI / Log Service 
> [http://localhost:8080/system/console/logs] there is only the display "Log 
> Service is not installed/running." and messages from OSGI (such as errors in 
> activation methods) are inconveniently logged to stdout instead of the 
> configured logfiles like error.log, which gave me some headache until I 
> noticed that. :)  Both the console plugin and the logging to error.log do 
> work properly in version 11.
> This is in spite of the bundle org.apache.sling.commons.logservice being 
> active. I tried downgrading it from the currently included 1.1.0 to 1.0.6, 
> which works in the version 11 of the Sling Starter, but this doesn't help. So 
> I guess it's some kind of configuration problem.
> Thanks so much for your amazing work!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to