Hi Mark,
As noted in the Requirements section on the page, HikariCP uses slf4j (Simple Logging Framework for Java), follow the slf4j configuration guides for how to configure logging. In the absence of slf4j configuration, slf4j will use what is called a SimpleLogger which outputs to stderr. In that case you can enable debugging across the board, for example, by specifying a system property:
-Dorg.slf4j.simpleLogger.defaultLogLevel=debug
Re: your mbean question, mentioned in that post just above the code snippet is:
The MBean is registered with the name:
com.zaxxer.hikari:type=Pool (<poolName>)
where poolName is a name you can set on the HikariConfig using config.setPoolName("foo"), for example.
so you can set the pool name to anything you want, for example, config.setPoolName("Mark"), then retrieve the pool mbean via:
ObjectName poolName = new ObjectName("com.zaxxer.hikari:type=Pool (Mark)");
The only requirement is that the names are unique, i.e. two HikariCP pools cannot be constructed with the same name.