Example #1
0
        public SQLiteConnection GetSQLConn(string dbName)
        {
            string dbPath = FileUtil_UWP.GetPath(FileUtil_UWP.docFolder, dbName);

            Logger("open db at " + dbPath);
            return(new SQLiteConnection(dbPath));
        }
Example #2
0
        public static async void Init()
        {
            LogFile = new FakeFile_UWP(FileUtil_UWP.GetPath(FileUtil_UWP.cacheFolder, "AppLog.log"));
            var file = await StorageFile.GetFileFromPathAsync(LogFile.path);

            logStream = await file.OpenStreamForWriteAsync();

            logStream.Position = logStream.Length;
            logWriter          = new StreamWriter(logStream);
            TryLog("Init Logger");
        }