00001 #ifndef __LOG_LIB_H
00002 #define __LOG_LIB_H
00003
00004
00016 #include <stdio.h>
00017 #include <unistd.h>
00018 #include <pthread.h>
00019 #include <sys/time.h>
00020 #include <errno.h>
00021 #include <string.h>
00022 #include <syslog.h>
00023
00025 #define LOG_LIB_BUFF_SIZE 150
00026
00028 #define LOGSYSLOG 0x08
00029
00030 #define LOGSTDERR 0x04
00031
00032 #define LOGSTDOUT 0x02
00033
00034 #define LOGFILE 0x01
00035
00036
00055 void logmessage(char *message, int unsigned location, char *process_name,
00056 char *log_file_name, char *filename,
00057 int line_num, char *function);
00058
00061 #endif