USE_MUTEX defaults to 0

This commit is contained in:
MrBesen 2020-11-20 22:04:05 +01:00
parent 9ea5878a23
commit 63e4c5e830
1 changed files with 1 additions and 3 deletions

4
Log.h
View File

@ -4,7 +4,7 @@
#include <string>
#ifndef LOG_USEMUTEX
#define LOG_USEMUTEX 1
#define LOG_USEMUTEX 0
#endif
namespace Log {
@ -21,8 +21,6 @@ void addLogfile(const std::string& filename, Level min, Level max);
void setConsoleLogLevel(Level lvl);
void setColoredOutput(bool enabled);
inline bool useMutex() { return LOG_USEMUTEX; }
// Log entry that can be formed with various mixed data types
// by concatenation with the << operator
// Inspired from https://stackoverflow.com/a/8337882