I'm using HikariCP with Tomact8.5 and Oracle.
I want to send email everytime HikariCP warns on leak.
HikariCP code:
import org.slf4j.Logger;
LOGGER.warn("{} - leakDetectionThreshold is less than 2000ms or more than maxLifetime, disabling it.", poolName);
Should I write my own code or can I use logging properties to get warning sent in mail?