PixelLightAPI
.
|
#include "PLCore/Core/Singleton.h"
#include "PLCore/Container/Queue.h"
#include "PLCore/Base/Event/Event.h"
#include "PLCore/Log/Log.inl"
Go to the source code of this file.
Classes | |
class | PLCore::Log |
Log system class. More... | |
Namespaces | |
namespace | PLCore |
Defines | |
#define | PL_LOG(Level, Text) |
Log macro. |
#define PL_LOG | ( | Level, | |
Text | |||
) |
{ \ if (PLCore::Log::HasInstance() && PLCore::Log::GetInstance()->GetLogLevel() >= PLCore::Log::Level) { \ PLCore::Log::LogLevel nLogLevel = PLCore::Log::Level; /* Avoid 'expression is constant' warning */ \ if (nLogLevel >= PLCore::Log::Debug) { \ PLCore::String sLogString = Text; \ PLCore::Log::GetInstance()->Output(PLCore::Log::Level, sLogString + PLCore::String::Format(", %s, %d, %s", __FILE__, __LINE__, __FUNCTION__)); \ } else PLCore::Log::GetInstance()->Output(PLCore::Log::Level, Text); \ } \ }
Log macro.
[in] | Level | Log level |
[in] | Text | Text which should be written into the log |
|