- added option to log debug info using a worker thread, by default logging is NOT threaded. To enable:

ThreadedLogging=true
This commit is contained in:
Mark Vejvoda
2010-12-23 19:47:40 +00:00
parent c0c70217dc
commit 809d56e86c
5 changed files with 280 additions and 14 deletions

View File

@@ -110,14 +110,13 @@ protected:
static int lockFileCountIndex;
static std::map<DebugType,SystemFlagsType> debugLogFileList;
static bool haveSpecialOutputCommandLineOption;
public:
static CURL *curl_handle;
static int DEFAULT_HTTP_TIMEOUT;
static bool VERBOSE_MODE_ENABLED;
static bool ENABLE_THREADED_LOGGING;
SystemFlags();
~SystemFlags();
@@ -133,6 +132,7 @@ public:
// Let the macro call into this when require.. NEVER call it automatically.
static void handleDebug(DebugType type, const char *fmt, ...);
static void logDebugEntry(DebugType type, string debugEntry, time_t debugTime);
// If logging is enabled then define the logging method
#ifndef UNDEF_DEBUG