Compare commits

..

No commits in common. "c2a5995e7e656f971c0e17aa9ab988ae903916a5" and "8fcddba591bb0c15927ff2e4770808e51ba24140" have entirely different histories.

6 changed files with 2 additions and 10 deletions

View File

@ -4,7 +4,6 @@
"iosfwd": "cpp",
"fstream": "cpp",
"*.tcc": "cpp",
"ostream": "cpp",
"mutex": "cpp"
"ostream": "cpp"
}
}

View File

@ -1,3 +0,0 @@
18:29:30 [EVENT] Start loging
18:29:44 [EVENT] Start loging
18:29:47 [EVENT] Start loging

View File

@ -7,7 +7,6 @@
#include <fstream>
#include <time.h>
#include <sys/stat.h>
#include <mutex>
using namespace std;
@ -20,7 +19,6 @@ class log {
struct tm * moment;
uint day;
string path;
mutex io;
log (string _dir, bool _isKeepOpen = true, bool _printInConsole = false);

View File

@ -43,7 +43,6 @@ void log::setMoment() {
}
void log::put(string logline) {
io.lock();
if (printInConsole) {
cout << logline << endl;
}
@ -75,7 +74,6 @@ void log::put(string logline) {
if (!isKeepOpen && logfile.is_open()) {
loose();
}
io.unlock();
}

View File

@ -1 +1 @@
g++ test.cpp ../src/* -o test.o
g++ test.cpp ../src/* -o test.o -l sqlite3

Binary file not shown.