10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Core/Signal.hpp> 12 #include <Nazara/Core/String.hpp> 14 #if NAZARA_CORE_THREADSAFE && NAZARA_THREADSAFETY_LOG 15 #include <Nazara/Core/ThreadSafety.hpp> 17 #include <Nazara/Core/ThreadSafetyOff.hpp> 21 #define NazaraDebug(txt) NazaraNotice(txt) 23 #define NazaraDebug(txt) 26 #define NazaraNotice(txt) Nz::Log::Write(txt) 32 class NAZARA_CORE_API
Log 37 static void Enable(
bool enable);
41 static bool IsEnabled();
45 static void Write(
const String&
string);
46 static void WriteError(ErrorType type,
const String& error,
unsigned int line = 0,
const char* file =
nullptr,
const char*
function =
nullptr);
48 NazaraStaticSignal(OnLogWrite,
const String& );
49 NazaraStaticSignal(OnLogWriteError, ErrorType ,
const String& ,
unsigned int ,
const char* ,
const char* );
52 static bool Initialize();
53 static void Uninitialize();
56 static bool s_enabled;
60 #endif // NAZARA_LOGGER_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a string.
Definition: String.hpp:22
Core class that represents a logger.
Definition: Log.hpp:32
Core class that represents the module initializer of Core.
Definition: Core.hpp:14
Core class that represents the behaviour of the log classes.
Definition: AbstractLogger.hpp:15