Compare commits
	
		
			No commits in common. "c2a5995e7e656f971c0e17aa9ab988ae903916a5" and "8fcddba591bb0c15927ff2e4770808e51ba24140" have entirely different histories.
		
	
	
		
			c2a5995e7e
			...
			8fcddba591
		
	
		
							
								
								
									
										3
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@ -4,7 +4,6 @@
 | 
			
		||||
        "iosfwd": "cpp",
 | 
			
		||||
        "fstream": "cpp",
 | 
			
		||||
        "*.tcc": "cpp",
 | 
			
		||||
        "ostream": "cpp",
 | 
			
		||||
        "mutex": "cpp"
 | 
			
		||||
        "ostream": "cpp"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -1,3 +0,0 @@
 | 
			
		||||
18:29:30 [EVENT] Start loging
 | 
			
		||||
18:29:44 [EVENT] Start loging
 | 
			
		||||
18:29:47 [EVENT] Start loging
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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();
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
g++ test.cpp ../src/* -o test.o
 | 
			
		||||
g++ test.cpp ../src/* -o test.o -l sqlite3
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								test/test.o
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								test/test.o
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user