[ROO-3658] Apache Felix HTTP Jetty is logging to System.out Created: 14/Aug/15  Updated: 31/Aug/15  Resolved: 31/Aug/15

Status: Closed
Project: Spring Roo
Component/s: @ CORE
Affects Version/s: 2.0.0.M1
Fix Version/s: 2.0.0.M2

Type: Task Priority: Major
Reporter: Enrique Ruiz (DiSiD) Assignee: Enrique Ruiz (DiSiD)
Resolution: Complete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When the Apache Felix HTTP Jetty is added to OSGi containter the LogServiceLogger delegates on ConsoleLogger by default when it doesn't have a reference to the LogService.

The problem is the ConsoleLogger writes the messages to System.out which causes Roo cannot configure the log verbosity and unexpected logs are being shown to the developer.



 Comments   
Comment by Enrique Ruiz (DiSiD) [ 14/Aug/15 ]

An issue has been opened at Felix JIRA: https://issues.apache.org/jira/browse/FELIX-4994

Whereas it is solved we have created the wrapping felix-http-jetty that solves the issue at https://github.com/spring-projects/spring-roo-wrapping

Commit 823399b51913a0c5d91d9ef87c35e8f4cdaba575

Comment by Enrique Ruiz (DiSiD) [ 31/Aug/15 ]

Update the classes that compose the patch to implement the definitive solution implemented by the Felix team.

Now default the console logger is still used by default. If you specify the framework property (or system property) org.apache.felix.http.log.jul with any value, the jul logger is used instead.

The Felix team don't maintain branches of our modules and applied the improvement to the latest version only so we still need this wrapping.

Commit 4cef5c8e77f4ba4d55be64057cceaafc61134e2a

Generated at Sun Nov 17 19:50:02 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.