Get parent logger : Database « JDK 7 « Java

Get parent logger

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;

public class Test {
  public static void main(String[] args) throws Exception {
    Connection conn = DriverManager
        .getConnection("...", "username", "password");
    Driver driver = DriverManager.getDriver("jdbc:derby://localhost:1527");
    System.out.println("Parent Logger" + driver.getParentLogger());



Related examples in the same category

1.Using the RowSetFactory class
2.Java 7 database enhancements:Get auto generated key
3.Retrieving pseudo-columns
4.Controlling the type value of the OUT parameter