public static SQLiteLoggerRepository Get(string basePath) { lock (Repositories) { if (Repositories.ContainsKey(basePath)) { return(Repositories[basePath]); } var repo = new SQLiteLoggerRepository(basePath); Repositories[basePath] = repo; return(repo); } }
static SQLiteAppender() { var repository = SQLiteLoggerRepository.Get(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Log")); Logger = repository.Get(DateTimeCore.Today.ToYearMonth()); }