A 3d fps game made in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Symmetry/src/common/log.h

15 lines
471 B

#ifndef LOG_H
#define LOG_H
#include <stdio.h>
void log_init(const char* log_file_name, const char* user_directory);
void log_cleanup(void);
void log_message(const char* message, ...);
void log_warning(const char* message, ...);
void log_error(const char* context, const char* error, ...);
void log_to_stdout(const char* message, ...); /* Only use when logging is not initialized */
FILE* log_file_handle_get(void);
void log_file_handle_set(FILE* file);
#endif