BWAPI
UAlbertaBot_src/Projects/UAlbertaBot/Source/Logger.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Common.h"
00004 #include "BWTA.h"
00005 #include <fstream>
00006 
00007 class Logger {
00008 
00009         std::ofstream logStream;
00010         std::string logFile;
00011 
00012         Logger();
00013         static Logger *                         instance;
00014 
00015 public:
00016 
00017         static Logger * getInstance();
00018         void log(const std::string & msg);
00019         void setLogFile(const std::string & filename);
00020 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines