gavlyukovskiy/spring-boot-data-source-decorator

Is log4j2 supported by this integration?

Closed this issue · 3 comments

Is log4j2 supported by this integration?

Hi, all proxy providers (p6spy, datasource-proxy and flexy-pool) are using slf4j by default, if you configured your spring boot application to use log4j2 everything should be fine.

Hi Arthur,

It appeared that the logger name in log4j2.xml should be just "p6spy" and not the class name of an appender. Works like a charm now. Thank you.

I'm glad to hear you solved your issue. If you have any more questions feel free to open another issue.