PixelLightAPI  .
Classes | Namespaces | Defines
Log.h File Reference
#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 Documentation

#define PL_LOG (   Level,
  Text 
)
Value:
{ \
    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.

Parameters:
[in]LevelLog level
[in]TextText which should be written into the log


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:02
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported