mirror of
https://github.com/glest/glest-source.git
synced 2025-08-08 17:36:30 +02:00
- 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user