GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hasanlo/spring-boot-p6spy-config-example: Example of spring boot p6spy configuration

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.mvn/wrapper
.mvn/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
spy.log
spy.log
 
 

Repository files navigation

Example of spring boot p6spy configuration

P6Spy is a framework that enables database data to be seamlessly intercepted and logged with no code changes to existing application. The P6Spy distribution includes P6Log, an application which logs all JDBC transactions for any Java application.

set up p6spy in spring boot application

  • add p6spy dependency
<dependency>
    <groupId>p6spy</groupId>
    <artifactId>p6spy</artifactId>
    <version>3.9.1</version>
</dependency> 
  • add p6spy to url
spring.datasource.url=jdbc:p6spy:h2:mem:persistence
  • add spy.properties

  • add real database in apy.properties

driver=org.h2.Driver

Configuration

properties Description default value
logfile name of logfile to use spy.log
append append to the p6spy log file true
logMessageFormat class to use for formatting log messages SingleLineFormat
useNanoTime if set to true, the execution time will be measured in nanoseconds false
executionThreshold Execution threshold applies to the standard logging of P6Spy 0

For full documentation refer to project page: p6spy

About

Example of spring boot p6spy configuration

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.