mirror of
https://github.com/tenrok/Rfid-Credential-Provider.git
synced 2026-06-17 19:30:32 +03:00
Z-2 USB Reader
This commit is contained in:
@@ -5,19 +5,19 @@
|
||||
#include <string>
|
||||
#include "Logger.h"
|
||||
|
||||
void Log(const char *toWrite){
|
||||
FILE * pFile;
|
||||
void Log(const char* toWrite) {
|
||||
FILE* pFile;
|
||||
|
||||
time_t now;
|
||||
struct tm *ts;
|
||||
struct tm* ts;
|
||||
char buf[80];
|
||||
|
||||
|
||||
now = time(NULL);
|
||||
|
||||
|
||||
ts = localtime(&now);
|
||||
strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S", ts);
|
||||
|
||||
pFile = fopen ("C:\\RfidCredentialProvider.log.txt","a");
|
||||
pFile = fopen("C:\\RfidCredentialProvider.log.txt", "a");
|
||||
fprintf(pFile, "%s\t%s\n", buf, toWrite);
|
||||
fclose(pFile);
|
||||
}
|
||||
Reference in New Issue
Block a user