X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fuglylogging.h;fp=src%2Fuglylogging.h;h=df816caedcf7dbc89382c752ee706aff0c77870f;hb=f782e931b0c51836ffae8a47618e6c2263607555;hp=7099d919ca5c943a6cea164440f4e878b010fff3;hpb=5121ae07c4a58887dcf940c107a4f45422ffd092;p=fw%2Fstlink diff --git a/src/uglylogging.h b/src/uglylogging.h index 7099d91..df816ca 100644 --- a/src/uglylogging.h +++ b/src/uglylogging.h @@ -9,14 +9,16 @@ extern "C" { #endif -#define UDEBUG 90 -#define UINFO 50 -#define UWARN 30 -#define UERROR 20 -#define UFATAL 10 - - int ugly_init(int maximum_threshold); - int ugly_log(int level, const char *tag, const char *format, ...); +enum ugly_loglevel { + UDEBUG = 90, + UINFO = 50, + UWARN = 30, + UERROR = 20, + UFATAL = 10 +}; + +int ugly_init(int maximum_threshold); +int ugly_log(int level, const char *tag, const char *format, ...); #define DLOG(format, args...) ugly_log(UDEBUG, __FILE__, format, ## args) #define ILOG(format, args...) ugly_log(UINFO, __FILE__, format, ## args)