#include <fstream>

// This will run BEFORE main() as a static initializer
struct StartupLogger {
    StartupLogger() {
        std::ofstream log("STARTUP.log", std::ios::trunc);
        log << "Static initializer running BEFORE main()" << std::endl;
        log.flush();
    }
} g_startup_logger;
