Get the parent logger for the driver - Java JDBC

Java examples for JDBC:Connection

Description

Get the parent logger for the driver

Demo Code

import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Main {
  public void main() {
    try {/* www. jav a 2 s.  co  m*/
      Driver driver = DriverManager.getDriver("jdbc:derby://localhost:1527");
      System.out.println("Parent Logger" + driver.getParentLogger());
    } catch (SQLException ex) {
      ex.printStackTrace();
    }

  }
}

Related Tutorials