- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# D:/Programmation/Sources/Tensor2/Utils/include/frost_utils_log.h

Go to the documentation of this file.

    00001 /* ###################################### */
    00002 /* ###     Frost Engine, by Kalith    ### */
    00003 /* ###################################### */
    00004 /*                                        */
    00005
    00006
    00007 #ifndef FROST_UTILS_LOG_H
    00008 #define FROST_UTILS_LOG_H
    00009
    00010 #include "frost_utils_types.h"
    00011
    00012 namespace Frost
    00013 {
    00014     void          Log(const s_str& sMessage, const s_bool& bTimeStamps, const s_uint& uiOffset);
    00015     const s_uint& GetLogLevel();
    00016
    00017     template<class T> void Log(const T& mObject, const s_bool& bTimeStamps = true, const s_uint& uiOffset = 0)
    00018     {
    00019         Log(s_str::Convert(mObject), bTimeStamps, uiOffset);
    00020     }
    00021
    00022     template<uint N, class T> void Log(const T& mObject, const s_bool& bTimeStamps = true, const s_uint& uiOffset = 0)
    00023     {
    00024         if (GetLogLevel() >= N)
    00025             Log(s_str::Convert(mObject), bTimeStamps, uiOffset);
    00026     }
    00027
    00028     void Error(const s_str& sClass, const s_str& sMessage);
    00029     void Warning(const s_str& sClass, const s_str& sMessage);
    00030 }
    00031
    00032 #endif