r2dbc-pool icon indicating copy to clipboard operation
r2dbc-pool copied to clipboard

Allow to dump the pool configuration

Open jonenst opened this issue 2 years ago • 0 comments

Feature Request

Is your feature request related to a problem? Please describe

I want to be sure of the actual pool configuration parameters (sometimes the configuration is inherited, overriden, etc).

Describe the solution you'd like

Hi, I'm using r2dbc-pool and would like to dump the pool configuration to stdout when it's initialized. I couldn't find an existing logger that I can enable to achieve this. As a comparision, for HikariCP, I enable the logger com.zaxxer.hikari.HikariConfig=DEBUG (random example from the internet: https://programmer.group/using-hikaricp-in-spring-mvc-project.html )

Describe alternatives you've considered

No easy alternative, except read my configuration really precisely and compute the whole configuration merge/override.

Teachability, Documentation, Adoption, Migration Strategy

in spring boot, logging.level.io.r2dbc.pool.ConnectionPoolConfiguration=DEBUG It would be nice if it was a separate logger as the already existing private static final Logger logger = Loggers.getLogger(ConnectionPool.class); in ConnectionPool, to avoid having too much noise.

Thanks

jonenst avatar Apr 28 '22 14:04 jonenst