Public Member Functions | |
LogDir (const string &server) | |
string | previousLogdir (const char *path) |
void | setLogdir (const char *path, int maxlogdirs, int logLevel=0) |
void | setPath (const string &path) |
const string & | getLogdir () |
const string & | getLogfile () |
void | getLogdirs (const string &logdir, vector< string > &entries) |
void | expire () |
void | restore (bool all) |
~LogDir () |
Definition at line 67 of file EvolutionSyncClient.cpp.
LogDir::LogDir | ( | const string & | server | ) | [inline] |
Definition at line 78 of file EvolutionSyncClient.cpp.
LogDir::~LogDir | ( | ) | [inline] |
void LogDir::expire | ( | ) | [inline] |
Definition at line 236 of file EvolutionSyncClient.cpp.
References getLogdirs(), and rm_r().
Referenced by SourceList::syncDone().
const string& LogDir::getLogdir | ( | ) | [inline] |
Definition at line 214 of file EvolutionSyncClient.cpp.
void LogDir::getLogdirs | ( | const string & | logdir, | |
vector< string > & | entries | |||
) | [inline] |
find all entries in a given directory, return as sorted array
Definition at line 224 of file EvolutionSyncClient.cpp.
Referenced by expire(), and previousLogdir().
const string& LogDir::getLogfile | ( | ) | [inline] |
Definition at line 219 of file EvolutionSyncClient.cpp.
Referenced by SourceList::syncDone(), and SourceList::syncPrepare().
string LogDir::previousLogdir | ( | const char * | path | ) | [inline] |
Finds previous log directory. Must be called before setLogdir().
path | path to configured backup directy, NULL if defaulting to /tmp, "none" if not creating log file |
Definition at line 111 of file EvolutionSyncClient.cpp.
References getLogdirs().
Referenced by SourceList::setLogdir().
void LogDir::restore | ( | bool | all | ) | [inline] |
Definition at line 254 of file EvolutionSyncClient.cpp.
Referenced by SourceList::syncDone(), and ~LogDir().
void LogDir::setLogdir | ( | const char * | path, | |
int | maxlogdirs, | |||
int | logLevel = 0 | |||
) | [inline] |
Definition at line 141 of file EvolutionSyncClient.cpp.
References EvolutionSyncClient::throwError().
Referenced by SourceList::setLogdir().
void LogDir::setPath | ( | const string & | path | ) | [inline] |
sets a fixed directory for database files without redirecting logging
Definition at line 211 of file EvolutionSyncClient.cpp.
Referenced by SourceList::setPath().