mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-12 00:59:12 +01:00
Renamed Logger StartLogFile and StopLogFile to Initialie to DeInitialize
This commit is contained in:
parent
48ac11f01a
commit
f83fc56c5f
@ -27,7 +27,7 @@ int main(int argc, char *argv[])
|
||||
// set the log file to write to
|
||||
std::string logFile = Configuration::GetAbsolutePath() + "/Log.txt";
|
||||
|
||||
if(!Logger::StartLogFile(logFile))
|
||||
if(!Logger::Initialize(logFile))
|
||||
{
|
||||
Logger::Write(Logger::ZONE_ERROR, "RetroFE", "Could not open \"" + logFile + "\" for writing");
|
||||
}
|
||||
@ -72,7 +72,7 @@ int main(int argc, char *argv[])
|
||||
p.DeInitialize();
|
||||
}
|
||||
|
||||
Logger::CloseLogFile();
|
||||
Logger::DeInitialize();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ std::ofstream Logger::WriteFileStream;
|
||||
std::streambuf *Logger::CerrStream = NULL;
|
||||
std::streambuf *Logger::CoutStream = NULL;
|
||||
|
||||
bool Logger::StartLogFile(std::string file)
|
||||
bool Logger::Initialize(std::string file)
|
||||
{
|
||||
WriteFileStream.open(file.c_str());
|
||||
|
||||
@ -20,7 +20,7 @@ bool Logger::StartLogFile(std::string file)
|
||||
return WriteFileStream.is_open();
|
||||
}
|
||||
|
||||
void Logger::CloseLogFile()
|
||||
void Logger::DeInitialize()
|
||||
{
|
||||
if(WriteFileStream.is_open())
|
||||
{
|
||||
|
||||
@ -20,9 +20,9 @@ public:
|
||||
ZONE_ERROR
|
||||
|
||||
};
|
||||
static bool StartLogFile(std::string file);
|
||||
static bool Initialize(std::string file);
|
||||
static void Write(Zone zone, std::string component, std::string message);
|
||||
static void CloseLogFile();
|
||||
static void DeInitialize();
|
||||
private:
|
||||
|
||||
static std::streambuf *CerrStream;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user