@Test public void setsDatabaseFilename() throws IOException { final File tmpFile = tmp.newFile(); final File file = appender.getDatabaseFile(tmpFile.getAbsolutePath()); assertThat(file, is(notNullValue())); assertThat(file.getName(), is(tmpFile.getName())); }
public File getDatabaseFile(String filename) { File dbFile = null; if (filename != null && filename.trim().length() > 0) { dbFile = new File(filename); } if (dbFile == null || dbFile.isDirectory()) { dbFile = new File(new AndroidContextUtil().getDatabasePath("logback.db")); } return dbFile; }
SQLiteAppender extends UnsynchronizedAppenderBase<ILoggingEvent> { public File getDatabaseFile(String filename) { File dbFile = null; if (filename != null && filename.trim().length() > 0) { dbFile = new File(filename); } if (dbFile == null || dbFile.isDirectory()) { dbFile = new File(new AndroidContextUtil().getDatabasePath("logback.db")); } return dbFile; } }
SQLiteAppender extends UnsynchronizedAppenderBase<ILoggingEvent> { public File getDatabaseFile(String filename) { File dbFile = null; if (filename != null && filename.trim().length() > 0) { dbFile = new File(filename); } if (dbFile == null || dbFile.isDirectory()) { dbFile = new File(new AndroidContextUtil().getDatabasePath("logback.db")); } return dbFile; }  }
SQLiteAppender extends UnsynchronizedAppenderBase<ILoggingEvent> { public File getDatabaseFile(String filename) { File dbFile = null; if (filename != null && filename.trim().length() > 0) { dbFile = new File(filename); } if (dbFile == null || dbFile.isDirectory()) { dbFile = new File(new AndroidContextUtil().getDatabasePath("logback.db")); } return dbFile; }  void setDbNameResolver(DBNameResolver dbNameResolver); String getMaxHistory(); long getMaxHistoryMs(); void setMaxHistory(String maxHistory); String getFilename(); void setFilename(String filename); File getDatabaseFile(String filename); @Override void start(); SQLiteLogCleaner getLogCleaner(); void setLogCleaner(SQLiteLogCleaner logCleaner); @Override void stop(); @Override void append(ILoggingEvent eventObject); }
SQLiteAppender extends UnsynchronizedAppenderBase<ILoggingEvent> { public File getDatabaseFile(String filename) { File dbFile = null; if (filename != null && filename.trim().length() > 0) { dbFile = new File(filename); } if (dbFile == null || dbFile.isDirectory()) { dbFile = new File(new AndroidContextUtil().getDatabasePath("logback.db")); } return dbFile; }  void setDbNameResolver(DBNameResolver dbNameResolver); String getMaxHistory(); long getMaxHistoryMs(); void setMaxHistory(String maxHistory); String getFilename(); void setFilename(String filename); File getDatabaseFile(String filename); @Override void start(); SQLiteLogCleaner getLogCleaner(); void setLogCleaner(SQLiteLogCleaner logCleaner); @Override void stop(); @Override void append(ILoggingEvent eventObject);  }