Use Log4j1 and Log4j2 in the same project

95
June 30, 2022, at 09:40 AM

I have a project in which Log4j1 is used all over the place, I upgraded to log4j2 but there is a jar depending on Log4j1 and I cannot change it.

so I get an error that org.apache.log4j.helpers.Loader is not found (because I removed the Log4j1 dependency)

I use now those dependencies:

compile "org.apache.logging.log4j:log4j-api:$log4j2Version"
compile "org.apache.logging.log4j:log4j-core:$log4j2Version"
compile "org.apache.logging.log4j:log4j-1.2-api:$log4j2Version"

any idea how I can fix that error?

Rent Charter Buses Company
READ ALSO
How to mock StorageOptions.newBuilder()

How to mock StorageOptions.newBuilder()

Can you help me in mocking StorageOptionsnewBuilder()

96
Reduce custom object using RxJava

Reduce custom object using RxJava

I'm using RxJava, I have a list of Point and i want to calculate the distance between each point and get the sum

98
Provide streaming API endpoint as event-stream or ndjson?

Provide streaming API endpoint as event-stream or ndjson?

Spring offers at least 2 possibilities to provide a streaming api response, which are very similar

112
Maximum sum in array given constraints

Maximum sum in array given constraints

Given an array of positive integers, return the maximum sum

88