[
https://issues.apache.org/jira/browse/FINERACT-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212026#comment-17212026
]
Michael Vorburger commented on FINERACT-1199:
---------------------------------------------
> I wonder if just adding jcl-over-slf4j.jar (see
> http://www.slf4j.org/legacy.html) is all we are missing here? Worth a try...
Oh, I forgot / just remembered that we (me) added a hard exclude for hat with
{{all*.exclude module: 'jul-to-slf4j' // see FINERACT-700 re.
ClassCircularityError: java/util/logging/LogRecord}} in {{build.gradle}} back
in FINERACT-700... I've attempted to remove that again, on the off chance that
some unrelated 3rd-party upgrade/s meanwhile fixed that problem. It does the
trick e.g. for {{./gradlew bootRun}}; a {{./gradlew bootJAR && java -jar
build/libs/fineract-provider.jar}} also seem to still work, as does {{./gradlew
test}} and {{./gradlew integrationTest}}. I've therefore raised
https://github.com/apache/fineract/pull/1394 proposing we remove that exclusion
again now.
> Jersey (JAX RS implementation) & Tomcat logging needs to be configured to use
> slf4j instead of JUL
> --------------------------------------------------------------------------------------------------
>
> Key: FINERACT-1199
> URL: https://issues.apache.org/jira/browse/FINERACT-1199
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Michael Vorburger
> Assignee: Michael Vorburger
> Priority: Major
>
> Fineract uses slf4j with logback, but Jersey (JAX RS implementation) doesn't
> dig that. It ideally should, as that would lead to nicer and more unified
> logging. Specifically, fixing this would make all of these kinds of logs:
> {code:java}
> Oct 11, 2020 8:14:08 PM
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Registering Spring bean, accrualAccountingApiResource, of type
> org.apache.fineract.accounting.accrual.api.AccrualAccountingApiRe
> source as a root resource class {code}
> looks more like most of the other log messages, e.g. this one et al:
> {code:java}
> 2020-10-11 20:14:07.934 INFO 198000 --- [ main]
> o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath b
> ase path '/actuator {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)