Hi Team,
I'm facing the same situation: when using log.info in CP4BA Business Automation Studio, all messages are recorded in liberty-message.log and it becomes very hard to find real errors.
Did anyone manage to completely disable these log.info messages so they do not appear in liberty-message.log at all?
Additionally, in my environment I also see another log line printing the OAuth token header, for example:
{"type":"liberty_message","host":"icp4adeploy-bawins1-baw-server-2.icp4adeploy-bawins1-baw-service-headless.cp4bapro.svc.cluster.local","ibm_userDir":"\/opt\/ibm\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"Adding OAuth Authorization header: \"Bearer ****\"","ibm_threadId":"000e0995","ibm_datetime":"2025-08-21T17:03:53.432+0000","module":"com.lombardisoftware.core.config.EnvironmentUtils","loglevel":"INFO","ibm_methodName":"getOAuthToken","ibm_className":"com.lombardisoftware.core.config.EnvironmentUtils","ibm_sequence":"1755795833432_00000002D63CB","ext_appName":"IBM_BPM_WebAPI","ext_thread":"Default Executor-thread-84978"}
Does anyone know how to disable this specific log so it is not written anymore?
Thanks!
------------------------------
Infraestructura Dacartec
------------------------------
Original Message:
Sent: Tue June 25, 2024 04:21 AM
From: RK Chandra
Subject: IBM Cp4BA - Custom Logging
Team,
If I use log.info
to log messages in CP4BA Business Automation Studio, they are recorded in the liberty-message.log
under the application. How can I redirect these logs to a separate mounted PVC/file? What steps should be followed? Can someone provide the detailed steps?
Thank you.
------------------------------
RK Chandra
------------------------------