This commit is contained in:
Suraxius committed 2021-01-11 20:57:44 +01:00
1 parent 9fac304771
commit 064ac24c10
2 files changed
+3 -7

No files matched your search

+3 -6
View File
@@ -18,12 +18,9 @@ Logger::Logger(enum Level logLevel) :
{ {
output = new ofstream("plains.log"); output = new ofstream("plains.log");
if (!output) { if (!(*output)) {
cerr << "Unable to open Logfile!" << endl; cout << "Unable to open Logfile! writing to /tmp/plains.log" << endl;
//std::ostream osteam(); output = new ofstream("/tmp/plains.log");
//aoutput = cout;
//output->rdbuf(cout.rdbuf());
//output.rdbuf(NULL);
} }
else { else {
debug << "Logfile successfully opened!" << commit; debug << "Logfile successfully opened!" << commit;
-1
View File
@@ -2,7 +2,6 @@
#define LOGGER_HPP #define LOGGER_HPP
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <ostream>
namespace Plains { namespace Plains {
namespace Core { namespace Core {