public SQLiteConnection GetSQLConn(string dbName) { string dbPath = FileUtil_iOS.GetPath(FileUtil_iOS.documentsPath, dbName); Logger("open db at " + dbPath); return(new SQLiteConnection(dbPath)); }
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"); }