mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-23 22:55:58 +01:00
19 lines
368 B
C
19 lines
368 B
C
#ifndef LOGGER_H
|
|
#define LOGGER_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#define DEFAULT_LOGLEVEL ERROR
|
|
|
|
enum LOGLEVEL { QUIET, ERROR, WARN, INFO, DEBUG, TRACE };
|
|
|
|
struct logger_properties {
|
|
enum LOGLEVEL level;
|
|
FILE *dst;
|
|
};
|
|
|
|
void init_logger(FILE *dst, enum LOGLEVEL level);
|
|
enum LOGLEVEL get_loglevel(const char *level);
|
|
void logprint(enum LOGLEVEL level, char *msg, ...);
|
|
|
|
#endif
|