25 lines
740 B
C++
25 lines
740 B
C++
#include "pch.h"
|
|
#include "Logger.h"
|
|
|
|
//#pragma warning(disable : 4996)
|
|
|
|
HANDLE Logger::handle;
|
|
|
|
void Logger::Initialize(const std::string jobId)
|
|
{
|
|
AllocConsole();
|
|
freopen_s((FILE**)stdout, "CONOUT$", "w", stdout);
|
|
Logger::handle = CreateFileA("CONOUT$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
|
SetStdHandle(STD_OUTPUT_HANDLE, Logger::handle);
|
|
|
|
#ifndef NDEBUG
|
|
printf("[[[ DLL COMPILED AS DEBUG ]]]\n");
|
|
#endif
|
|
|
|
// lol
|
|
// printf("Access key read: \n");
|
|
// printf("Current Access key: \n");
|
|
// printf("Service starting...\n");
|
|
// printf("Intializing Roblox Web Service\n");
|
|
// printf("Service Started on port 64989\n");
|
|
} |