etc.git


etc

~ scripts and random things
git clone https://github.com/djnnvx/etc.git
log | files | refs | archive

logger.h (398B)

      1 #pragma once
      2 #include <stdio.h>
      3 #include <Windows.h>
      4 
      5 // Global log file handle
      6 extern FILE* logfile;
      7 
      8 // Initialize logging (opens the log file)
      9 BOOL init_logger(const char* path);
     10 
     11 // Clean up logging (closes the log file)
     12 void close_logger(void);
     13 
     14 // Log helpers
     15 void log_info(const char* fmt, ...);
     16 void log_error(const char* fmt, ...);
     17 void log_success(const char* fmt, ...);