[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


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.

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 Mon May 25 10:45:27 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.