Java examples for JDBC:Connection
Get the parent logger for the driver
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(); } } }