I want to mask the password while printing debug logs in hikariconfig
Sample logs for where I want to hide the password
com.zaxxer.hikari.HikariConfig
- dataSourceProperties............{url=JDBC_URL, SSL_TRUSTSTORE_PASSWORD=Password@123, IFMXCONNECTION_CLEANER_THREADS=0, DATABASE=USERDB, user=ABC, LOGINTIMEOUT=5000, SSLCONNECTION=TRUE, IFX_ISOLATION_LEVEL=1, SSL_PROTOCOLS=TLSv1.2, DB_LOCALE=en_US.819, password=Password@123, IFX_PREPAREDSTATEMENT_CACHE_SIZE=20, SSL_TRUSTSTORE=TRUSTSTORE_PATH, CLIENT_LOCALE=en_US.utf8}