Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/engine/Log.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _LOG_H_
00004 #define _LOG_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <core/Singleton.h>
00009 #include <engine/LogDefines.h>
00010 #include <engine/Object.h>
00011 
00012 #include <string>
00013 #include <fstream>
00014 
00015 namespace engine
00016 {
00017 
00019 class ENGINE_PUBLIC_EXPORT Log: public Object
00020 {
00021 public:
00022 
00023         Log(const std::string& fileName);
00024         Log(const std::string& name, const std::string& fileName);
00025         ~Log();
00026 
00028         bool isDebugOutput() const;
00029 
00031         void setDebugOutput(bool debugOutput = true);
00032 
00037         void logMessage(const std::string& source, const std::string& text, LogLevel ll = LL_INFORMATION);
00038 
00039 protected:
00040 
00042         static u32 msNextGeneratedLogIndex;
00043 
00044         std::ofstream mLogStream;
00045 };
00046 
00047 } // end namespace engine
00048 
00049 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by Doxygen (1.7.4)