[ROO-3659] Setup logging system for OSGi services Created: 14/Aug/15  Updated: 04/Sep/15  Resolved: 04/Sep/15

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

Type: Improvement Priority: Minor
Reporter: Enrique Ruiz (DiSiD) Assignee: Enrique Ruiz (DiSiD)
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


OSGi services write logs using several systems so to fix this issue it is needed to unify the logging implementation and configure the logging level for those services.

By default Roo uses the Java Logging API but some OSGi services uses SLF4J API, so in order to unify the logging implementation system it should be changed from Slf4J Simple to Slf4J JDK14.

Then configure the logging level as Java Logging API recommends.

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

Fixed by using the new Apache Felix HTTP Jetty wrapping (ROO-3658)

Configure HTTP Jetty service with the JVM property -Dorg.eclipse.jetty.util.log.class to use SLF4J.

Configure Java Logging API using the new logging.properties file and setting it via the JVM property -Djava.util.logging.config.file

Commit 88d09702d5eff6df7e71d920e1691c353177057a

Comment by Enrique Ruiz (DiSiD) [ 04/Sep/15 ]

Commit 5ded0af3659ff26aaad6259beea9fb1e5e651aa9

Generated at Sun Oct 20 18:55:41 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.