1

Does Someone know if Tinylog works with a pool connections when it is used in tomcat?

I have not found the documentation related with this (Here). could someone tell me the link to read it.

if Tinylog does not have this option, what other api will have it?

Regards.

joschi
  • 12,746
  • 4
  • 44
  • 50
J. Abel
  • 890
  • 3
  • 17
  • 38

1 Answers1

0

If you mean the Tomcat JDBC Connection Pool and you have registered your database connection as a resource as described in the official Tomcat documentation, tinylog works with pool connections. You just have to use your resource name as data source URL (see tinylog manual).

Example Tomcat resource:

<Resource name="jdbc/TestDB"
      auth="Container"
      type="javax.sql.DataSource"

tinylog configuration:

tinylog.writer = jdbc
tinylog.writer.url = java:/comp/env/jdbc/TestDB
Martin
  • 598
  • 1
  • 4
  • 27