[ROO-3659] Setup logging system for OSGi services Created: 14/Aug/15 Updated: 04/Sep/15 Resolved: 04/Sep/15
|Reporter:||Enrique Ruiz (DiSiD)||Assignee:||Enrique Ruiz (DiSiD)|
|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 (
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
|Comment by Enrique Ruiz (DiSiD) [ 04/Sep/15 ]|