Thanks; that’s quite helpful. I will try some more with the JUL bridge, and
do the override if it doesn’t work out still.

On Wed, Apr 30, 2025 at 12:46 AM 'RobW' via GWT Users <
[email protected]> wrote:

> I know you say it's not an option -  but we found JUL bridge to be our
> least bad long term option. We needed it for one specific library, but now
> I'd say there's maybe half a dozen edge cases it handles for us. FWIW - we
> moved to reload4j also as our code is 1.2 and we had no need of log4j 2.
>
> On Tuesday, 29 April 2025 at 21:37:30 UTC+1 Gerard Keiser wrote:
>
>> The default implementation of
>> AbstractRemoteServiceServlet#doUnexpectedFailure(Throwable)
>> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gwtproject.org%2fjavadoc%2flatest%2fcom%2fgoogle%2fgwt%2fuser%2fserver%2frpc%2fjakarta%2fAbstractRemoteServiceServlet.html%23doUnexpectedFailure%28java.lang.Throwable%29&c=E,1,H_FPhuIxOb9cDTk8s1nMcIi5jOYio3JZw7C5fdZ9sFvNVHaO_OvTT6XUKwu95aZCV09U3saNbj9WG4iRBPoz-BLvSkC8ARNKKpZEjw8R4G161RpzcyVzcw,,&typo=1>
>> calls RPCServletUtils#writeResponseForUnexpectedFailure(ServletContext,
>> HttpServletResponse, Throwable)
>> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fwww.gwtproject.org%2fjavadoc%2flatest%2fcom%2fgoogle%2fgwt%2fuser%2fserver%2frpc%2fRPCServletUtils.html%23writeResponseForUnexpectedFailure%28javax.servlet.ServletContext%2cjavax.servlet.http.HttpServletResponse%2cjava.lang.Throwable%29&c=E,1,LbPa-sw34_mV3AB50j1cV9beIToLQv2C9Yhjt7fEI-dDImKrANJ5nZR9smphto8-5boxWUBn6Hwgh7ZxO64C51ywNM5CZq0zzYQBP-uyhsF1NaZ8TQ,,&typo=1>,
>> which logs the error with ServletContext#log(String, Throwable). We would
>> like to use Log4j instead. We generally try to avoid overriding methods in
>> 3rd party libraries, but is there another way to swap out the logger?
>> Setting up the JUL-to-Log4j bridge
>> <https://logging.apache.org/log4j/2.x/log4j-jul.html> isn’t a good
>> option at the moment, making a wrapper that implements ServletContext seems
>> much worse, and replacing the application server logger
>> <https://logging.apache.org/log4j/2.x/jakarta.html#replace> didn’t help.
>>
>> Thanks,
>> Gerard
>>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/google-web-toolkit/238b9e33-97fa-4edd-8070-0d383ee85621n%40googlegroups.com
> <https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fgroups.google.com%2fd%2fmsgid%2fgoogle-web-toolkit%2f238b9e33-97fa-4edd-8070-0d383ee85621n%2540googlegroups.com%3futm_medium%3demail%26utm_source%3dfooter&c=E,1,5y04_DLhJIuDjZA8BbOKCQtucSVRChX0czCn0XAZCFhNZ9F9HoOMp8GBeI2vP7UBnJJsjO4gTLT3IQp-Q7gH9k29lIga_cw2jGZ1tvBa3hQ5sMTdXZrDVO-Fk2Q,&typo=1>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/CABTtZZCk7e6O3zbA4NjTr9XvC7FMJOXH2hCTiYMXd2H4U1hOFw%40mail.gmail.com.

Reply via email to