summaryrefslogtreecommitdiffstats
path: root/PICA_log.h
diff options
context:
space:
mode:
authorme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2012-07-01 19:01:46 +0000
committerme_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac>2012-07-01 19:01:46 +0000
commitefd5d206b65673d751c0aefe540f456fd9d06811 (patch)
tree0a5afacee0edf2216046a65e109c4fdff15fe7e5 /PICA_log.h
parent21124ba5a7d75ebb9856233b37e09476b4872280 (diff)
downloadpica-pica-efd5d206b65673d751c0aefe540f456fd9d06811.tar.gz
pica-pica-efd5d206b65673d751c0aefe540f456fd9d06811.zip
log functions added and implemented
git-svn-id: svn://localhost/project_picapica/trunk@136 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_log.h')
-rw-r--r--PICA_log.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/PICA_log.h b/PICA_log.h
new file mode 100644
index 0000000..46c80a4
--- /dev/null
+++ b/PICA_log.h
@@ -0,0 +1,25 @@
+#ifndef PICA_LOG_H
+#define PICA_LOG_H
+
+#include <stdarg.h>
+
+#define PICA_LOG_FATAL 31337
+#define PICA_LOG_ERROR 31338
+#define PICA_LOG_WARN 31339
+#define PICA_LOG_INFO 31340
+#define PICA_LOG_DBG1 31341
+#define PICA_LOG_DBG2 31342
+#define PICA_LOG_DBG3 31343
+
+void PICA_fatal(const char *fmt,...);
+void PICA_error(const char *fmt,...);
+void PICA_warn(const char *fmt,...);
+void PICA_info(const char *fmt,...);
+void PICA_debug1(const char *fmt,...);
+void PICA_debug2(const char *fmt,...);
+void PICA_debug3(const char *fmt,...);
+
+void PICA_log_entry(int loglevel, const char *fmt, va_list args);
+
+void PICA_set_loglevel(int loglevel);
+#endif