Code example for LogRecord

0
    public DBConnection() throws SQLException { 
 
        String filePath = getDatabaseFilePath();
 
        Logger logger = Logger.getLogger("DBConnection");
        logger.log(new LogRecord(Level.INFO, "Database: " + filePath));
 
        pool = new SimpleJDBCConnectionPool("org.sqlite.JDBC", "jdbc:sqlite:"
                + filePath, "anon", "", 1, 5);
        Migrations migrations = new Migrations(this.pool);
        migrations.runMigrations();
    } 
 
    /** 
     * Returns JDBCConnectionPool object. 
     *  
     * @return 
     */ 
    public JDBCConnectionPool getPool() { 
        return pool;
    }