| Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | 
Log class for writing debug/log data to files. More...
#include <Log.h>
 
  
 | Public Member Functions | |
| bool | isDebugOutput () const | 
| Gets if debug output is enabled for this log. | |
| Log (const std::string &fileName) | |
| Log (const std::string &name, const std::string &fileName) | |
| void | logMessage (const std::string &source, const std::string &text, LogLevel ll=LL_INFORMATION) | 
| void | setDebugOutput (bool debugOutput=true) | 
| Sets debug output for this log. | |
| ~Log () | |
| Protected Attributes | |
| std::ofstream | mLogStream | 
| Static Protected Attributes | |
| static u32 | msNextGeneratedLogIndex = 0 | 
| Incremented count for next index. | |
Log class for writing debug/log data to files.
| engine::Log::Log | ( | const std::string & | fileName | ) | 
References mLogStream, engine::Object::mObjectType, and engine::OT_LOG.
| engine::Log::Log | ( | const std::string & | name, | 
| const std::string & | fileName | ||
| ) | 
References mLogStream, engine::Object::mObjectType, and engine::OT_LOG.
| engine::Log::~Log | ( | ) | 
References mLogStream.
| bool engine::Log::isDebugOutput | ( | ) | const | 
Gets if debug output is enabled for this log.
| void engine::Log::logMessage | ( | const std::string & | source, | 
| const std::string & | text, | ||
| LogLevel | ll = LL_INFORMATION | ||
| ) | 
Log a message a text into the log
| source,: | The source form were this log is sent. | 
| text,: | Text to print out. | 
| ll,: | Log level of the text. | 
References engine::LL_ERROR, engine::LL_INFORMATION, engine::LL_WARNING, and mLogStream.
| void engine::Log::setDebugOutput | ( | bool | debugOutput = true | ) | 
Sets debug output for this log.
| std::ofstream engine::Log::mLogStream  [protected] | 
Referenced by Log(), logMessage(), and ~Log().
| u32 engine::Log::msNextGeneratedLogIndex = 0  [static, protected] | 
Incremented count for next index.
| 
	
		
		
		The KG Game Engine 
		Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by 
		Doxygen 
        (1.7.4)
		
		
	
	 |