-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.h
51 lines (42 loc) · 951 Bytes
/
log.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/******************************************************************
* ( $Id: log.h,v 1.4 2003/04/02 18:12:47 brw Exp $ )
*
* log.h
* Copyright 2002-2003 Branden R. Williams, Elliptix, LLC.
* Author: Branden R. Williams
* Details:
* Abstracting for log functions...
*
* $Log: log.h,v $
* Revision 1.4 2003/04/02 18:12:47 brw
* fixed copyright and added log/id cvs tags
*
*
******************************************************************/
#ifndef LOG_H
#define LOG_H
#endif
#include <stdio.h>
#include <syslog.h>
#include <string.h>
#ifndef DBFUNC_H
#include "dbfunc.h"
#endif
#ifndef MYLOG_ERROR
#define MYLOG_ERROR 'e'
#endif
#ifndef MYLOG_SCAN
#define MYLOG_SCAN 's'
#endif
#ifndef MYLOG_INFO
#define MYLOG_INFO 'i'
#endif
#ifndef MYLOG_DEBUG
#define MYLOG_DEBUG 'd'
#endif
/* some prototypes */
void logEntry(char logType, char *logAction);
void openLog(void);
void closeLog(void);
/* some globals. */
FILE *myLogFile;