wip
This commit is contained in:
1 parent
9fac304771
commit
064ac24c10
2 files changed
+3
-7
No files matched your search
+3
-6
@@ -18,12 +18,9 @@ Logger::Logger(enum Level logLevel) :
|
||||
{
|
||||
output = new ofstream("plains.log");
|
||||
|
||||
if (!output) {
|
||||
cerr << "Unable to open Logfile!" << endl;
|
||||
//std::ostream osteam();
|
||||
//aoutput = cout;
|
||||
//output->rdbuf(cout.rdbuf());
|
||||
//output.rdbuf(NULL);
|
||||
if (!(*output)) {
|
||||
cout << "Unable to open Logfile! writing to /tmp/plains.log" << endl;
|
||||
output = new ofstream("/tmp/plains.log");
|
||||
}
|
||||
else {
|
||||
debug << "Logfile successfully opened!" << commit;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define LOGGER_HPP
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <ostream>
|
||||
|
||||
namespace Plains {
|
||||
namespace Core {
|
||||
|
||||
Reference in new issue
Block a user