//Scriptname:log_analyse
//Author:charlotte
//date:2016/03/17
//Purpose: sleve log and connect save on database
/*defina head file*/
#include "stdio.h"
#include "stdlib.h"
#include "string.h" /*use function about string*/
#include "mysql.h" /*use mysql DB*/
#include "pthread.h" /*use multi threads*/
#include "sys/ipc.h" /*call message queue*/
#include "sys/time.h" /*call sleep*/
#define MAX_LINE 1024
/*define variable*/
int sign=0,sign_exit=1; /*sign to mark no.2error,sign_exit to mark thread1 exit*/
char log_name[MAX_LINE]="record_model.log"; /*no use*/
char log_path[MAX_LINE]="record_model.log";
int record_time = 0; /*store YMD*/
int record_time_day = 0; /*store hms*/
char record_day_time[MAX_LINE];
char function_name[MAX_LINE];
int sid;