summaryrefslogtreecommitdiffstats
path: root/loader2/log.h
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-13 00:52:40 +0000
committerChris Lumens <clumens@redhat.com>2005-08-13 00:52:40 +0000
commit26091625f3cf24dc0ba5bf655a83a868c5b20e89 (patch)
treea492c91713966c8050f0cee47cad79e87d15dbea /loader2/log.h
parenta96d25d6bdae5703ff8d9ee5993d9942f2a6a48d (diff)
downloadanaconda-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.h11
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_ */