Can we have two java web applications inside the same JVM loggin in different service names?

Hello people!

Is there any way to have two different Java web applications logging into two different service names while being inside the same JVM? I have tried, but one of the configurations got suppressed and was logged into the other service name.

And if it’s not possible, is there any way we can separate these logs in Kibana?

Thanks for your suggestions!