- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# D:/Programmation/Sources/Tensor2/Utils/src/frost_utils_log.cpp

Go to the documentation of this file.

    00001 /* ###################################### */
    00002 /* ###     Frost Engine, by Kalith    ### */
    00003 /* ###################################### */
    00004 /*                                        */
    00005
    00006 #include "frost_utils_log.h"
    00007 #include "frost_utilsmanager.h"
    00008
    00009 using namespace std;
    00010
    00011 namespace Frost
    00012 {
    00013     void Log( const s_str& sMessage, const s_bool& bTimeStamps, const s_uint& uiOffset )
    00014     {
    00015         UtilsManager::GetSingleton()->Log(sMessage, bTimeStamps, uiOffset);
    00016     }
    00017
    00018     void Error( const s_str& sClass, const s_str& sMessage )
    00019     {
    00020         s_str sHeader = "# Error # : ";
    00021         if (sClass != "")
    00022             sHeader += sClass + " : ";
    00023
    00024         Log(sHeader + sMessage, true, sHeader.GetLength());
    00025     }
    00026
    00027     void Warning( const s_str& sClass, const s_str& sMessage )
    00028     {
    00029         s_str sHeader = "# Warning # : ";
    00030         if (sClass != "")
    00031             sHeader += sClass + " : ";
    00032
    00033         Log(sHeader + sMessage, true, sHeader.GetLength());
    00034     }
    00035
    00036     const s_uint& GetLogLevel()
    00037     {
    00038         return UtilsManager::GetSingleton()->GetLogLevel();
    00039     }
    00040 }