Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        static SQLiteAppender()
        {
            var repository = SQLiteLoggerRepository.Get(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Log"));

            Logger = repository.Get(DateTimeCore.Today.ToYearMonth());
        }