// Logger.h -- Timestamped file logging and system diagnostics
#ifndef LOGGER_H
#define LOGGER_H

#include "pch.h"

extern FILE* g_logFile;
extern int   g_logging;

void OpenLogFile();
void LogTimestamp();
void Log(const char* msg);
void LogFmt(const char* fmt, ...);
void LogIf(const char* msg);
void LogFmtIf(const char* fmt, ...);

void LogSystemInfo();
void LogLoadedModules();
void LogFunctionBytes(const char* name, void* fn);

#endif // LOGGER_H
