# p6spy/p6spy

P6Spy is a framework that enables database data to be seamlessly intercepted and logged with no code changes to the application.

Repository: https://github.com/p6spy/p6spy
Canonical: https://ross.abutalabs.com/products/p6spy
Language: Java
License: Apache-2.0
License Family: permissive
Topics: p6spy, java, jdbc, jdbc-logging, logging
Last push: 2022-02-21T16:46:12+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5727, "days_push": 1654, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2235, forks 328 (observed 2026-08-28T04:06:29.358774+00:00)

## What it is
P6Spy is a Java framework that intercepts and logs JDBC database traffic without any code changes to the application. It includes P6Log, which records all JDBC transactions for any Java application.

## Use cases
- log all SQL statements issued by a Java application
- debug slow JDBC queries without changing application code
- capture actual SQL with parameters sent to the database
- audit database transactions in existing Java apps
- wrap any JDBC driver to trace database calls

## When to choose
- you need JDBC query logging with zero code changes
- you want to see the real SQL including bound parameter values
- you need a drop-in JDBC proxy driver for debugging or auditing

## When to avoid
- you need a general-purpose application logging framework
- your project is not on the JVM
- you need actively developed tooling with frequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: logging, database-driver, middleware
- domain: databases, developer-tools, backend
- platform: jvm
- tags: jdbc, sql-logging, interception, debugging

## Member repositories
- p6spy/p6spy (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.358774+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:44:20.273690+00:00, confidence not recorded.
  - readme: https://github.com/p6spy/p6spy (fetched 2026-08-28T04:06:29.358774+00:00, sha 753bb6cadca9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
