Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Craftsman Spy 1.0.5

    Download button

    No screenshots available
    Downloads: 497  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Craftsman | More programs
    LGPL / FREE
    December 13th, 2005, 19:38 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Craftsman Spy description

    Craftsman Spy is a framework for JDBC logging.

    Craftsman Spy is a an open source and free framework for JDBC logging. Craftsman Spy is a JDBC driver implementation.

    This logger logs all SQL connection and processings with execution spent time, all the stored procedures with arguments, all the batch processings and the result sets.

    No need to modify your application in order to integrate JDBC logging with Craftsman Spy. The application MUST use the craftsman.spy.SpyDriver and MUST be launched with the -Dspy.driver=... system property.

    Be carefull this JDBC driver SHOULD not be used in production mode. Use it only in development or pre-production system.

    ,b>Usage:

    Code

    The two solutions can be used as the following examples :
    System.setProperty("spy.driver","vendor.database.Driver");// or with the -Dspy.driver=vendor.database.Driver JVM option
    Class.forName("craftsman.spy.SpyDriver");
    Connection c = DriverManager.getConnection("jdbc:database:mydata");
    Class.forName("craftsman.spy.SpyDriver");
    Connection c = DriverManager.getConnection("jdbc:spy:vendor.database.Driver:database:mydata");

    Log configuration

    The log4j.properties or log4j.xml configuration file SHOULD contain the following lines :
    log4j.category.craftsman.spy=DEBUG, SpyFile
    log4j.appender.SpyFile=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.SpyFile.DatePattern='.'yyyy.MM.dd
    log4j.appender.SpyFile.File=spy.log
    log4j.appender.SpyFile.layout=org.apache.log4j.PatternLayout
    log4j.appender.SpyFile.layout.ConversionPattern=%m%n

    Requirements:

    · commons logging 1.0.4
    · log4j 1.2.11

    What's New in This Release:

    · The clearing and the reuse of prepared statements were fixed for better support of JDBC pools.
    · Batch registering and logging were secured and optimized.
    · More control was added and fatal messages are now logged.



    Product's homepage

      


    TAGS:

    JDBC logging | JDBC framework | JDBC driver implementation | Craftsman | Spy | JDBC

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM