From efd5d206b65673d751c0aefe540f456fd9d06811 Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 1 Jul 2012 19:01:46 +0000 Subject: log functions added and implemented git-svn-id: svn://localhost/project_picapica/trunk@136 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_log.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 PICA_log.h (limited to 'PICA_log.h') 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 + +#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 -- cgit v1.2.1