diff options
author | Chris Lumens <clumens@redhat.com> | 2005-08-13 00:52:40 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-08-13 00:52:40 +0000 |
commit | 26091625f3cf24dc0ba5bf655a83a868c5b20e89 (patch) | |
tree | a492c91713966c8050f0cee47cad79e87d15dbea /loader2/log.h | |
parent | a96d25d6bdae5703ff8d9ee5993d9942f2a6a48d (diff) | |
download | anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.gz anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.tar.xz anaconda-26091625f3cf24dc0ba5bf655a83a868c5b20e89.zip |
Support logging levels in the loader just like in the python parts of the
installer. Also make the output look the same. This isn't going to be
nearly as sophisticated as the python logging module, but it will at least
behave similarly with command line options.
Diffstat (limited to 'loader2/log.h')
-rw-r--r-- | loader2/log.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/loader2/log.h b/loader2/log.h index 4a6876f35..71cafba1c 100644 --- a/loader2/log.h +++ b/loader2/log.h @@ -3,9 +3,16 @@ #include <stdio.h> -void logMessage(const char * s, ...) __attribute__ ((format (printf, 1, 2)));; +#define DEBUGLVL 10 +#define INFO 20 +#define WARNING 30 +#define ERROR 40 +#define CRITICAL 50 + +void logMessage(int level, const char * s, ...) + __attribute__ ((format (printf, 2, 3))); void openLog(int useLocal); void closeLog(void); -void setLogLevel(int level); +void setLogLevel(int minLevel); #endif /* _LOG_H_ */ |