-
Notifications
You must be signed in to change notification settings - Fork 1
/
debug.h
55 lines (42 loc) · 1.52 KB
/
debug.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
52
53
54
55
/* $Id$ */
/*
** Copyright (C) 2002-2011 Sourcefire, Inc.
** Copyright (C) 1998-2002 Martin Roesch <[email protected]>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License Version 2 as
** published by the Free Software Foundation. You may not use, modify or
** distribute this program under any other version of the GNU General
** Public License.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef DEBUG_H
#define DEBUG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if !defined(INLINE)
#define INLINE inline
#endif /* !def INLINE */
#include <ctype.h>
#define LOG_VARIABLE "LOCO_DEBUG"
#define LOG_ALL 0xffffffff
#define LOG_FATAL 0x00000001
#define LOG_ERROR 0x00000002
#define LOG_WARN 0x00000004
#define LOG_INFO 0x00000008
#define LOG_DEBUG 0x00000010
void LogMessage(int level, char *fmt, ...);
extern char *DebugMessageFile;
extern int DebugMessageLine;
#define ulog DebugMessageFile = __FILE__; DebugMessageLine = __LINE__; LogMessage
int GetLogLevel (void);
#endif /* DEBUG_H */