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

            Logger("open db at " + dbPath);
            return(new SQLiteConnection(dbPath));
        }
Example #2
0
 static LogUtil_iOS()
 {
     LogFile            = new FakeFile_iOS(FileUtil_iOS.GetPath(FileUtil_iOS.cachePath, "AppLog.log"));
     logStream          = new FileStream(LogFile.path, FileMode.OpenOrCreate);
     logStream.Position = logStream.Length;
     logWriter          = new StreamWriter(logStream);
     TryLog("Init Logger");
 }