27 lines
442 B
C
27 lines
442 B
C
#ifndef PGPL_LOG_H
|
|
#define PGPL_LOG_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum PGPL_LogLevel {
|
|
PGPL_LOG_LEVEL_DEBUG,
|
|
PGPL_LOG_LEVEL_INFO,
|
|
PGPL_LOG_LEVEL_WARN,
|
|
PGPL_LOG_LEVEL_ERROR,
|
|
} PGPL_LogLevel;
|
|
|
|
void pgpl_log_set_minimum_level(PGPL_LogLevel level);
|
|
|
|
void pgpl_log_output_file(FILE *file);
|
|
|
|
void pgpl_log_message(PGPL_LogLevel level, const char *message, ...);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|