logback-android/src/main/java/ch/qos/logback/classic/android/SQLiteAppender.java
public SQLiteLogCleaner getLogCleaner() {
    if (this.logCleaner == null) {
      final Clock thisClock = this.clock;
      this.logCleaner = new SQLiteLogCleaner() {
        public void performLogCleanup(SQLiteDatabase db, Duration expiry) {
          final long expiryMs = thisClock.currentTimeMillis() - expiry.getMilliseconds();
          final String deleteExpiredLogsSQL = SQLBuilder.buildDeleteExpiredLogsSQL(dbNameResolver, expiryMs);
          db.execSQL(deleteExpiredLogsSQL);
        }
      };
    }
    return this.logCleaner;
  }
public SQLiteLogCleaner getLogCleaner() {
    if (this.logCleaner == null) {
      final Clock thisClock = this.clock;
      this.logCleaner = new SQLiteLogCleaner() {
        public void performLogCleanup(SQLiteDatabase db, Duration expiry) {
          final long expiryMs = thisClock.currentTimeMillis() - expiry.getMilliseconds();
          final String deleteExpiredLogsSQL = SQLBuilder.buildDeleteExpiredLogsSQL(dbNameResolver, expiryMs);
          db.execSQL(deleteExpiredLogsSQL);
        }
      };
    }
    return this.logCleaner;
  }
Gets the {@code SQLiteLogCleaner} in use. Creates default if needed.