How to set the logback.xml dynamically in OCP env?

Solution Verified - Updated -

Issue

I am trying to follow the guide to setup camel on SB in OCP env: https://access.redhat.com/documentation/en-us/red_hat_fuse/7.12/html-single/fuse_on_openshift_guide/index#integrate-spring-boot-with-kubernetes and wants to change the logback.xml dynamically, suppose a configmap should be the choice.

I found the logback.xml is included in the deployment jar, not a separate file in the classpath.
In this situation, how to achieve the requirement?

Environment

Red Hat Fuse 7.12 on OCP
SpringBoot

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content