blob: 12f8e27675220f59177d8a33ae2ec6d142363ad7 [file] [log] [blame]
Willy Tarreaubaaee002006-06-26 02:48:02 +02001/*
2 include/types/log.h
3 This file contains definitions of log-related structures and macros.
4
5 Copyright (C) 2000-2006 Willy Tarreau - w@1wt.eu
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation, version 2.1
10 exclusively.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#ifndef _TYPES_LOG_H
23#define _TYPES_LOG_H
24
Willy Tarreaue3ba5f02006-06-29 18:54:54 +020025#include <common/config.h>
Willy Tarreaubaaee002006-06-26 02:48:02 +020026
27#define MAX_SYSLOG_LEN 1024
28#define NB_LOG_FACILITIES 24
29#define NB_LOG_LEVELS 8
30#define SYSLOG_PORT 514
31
32
33/* fields that need to be logged. They appear as flags in session->logs.logwait */
34#define LW_DATE 1 /* date */
35#define LW_CLIP 2 /* CLient IP */
36#define LW_SVIP 4 /* SerVer IP */
37#define LW_SVID 8 /* server ID */
38#define LW_REQ 16 /* http REQuest */
39#define LW_RESP 32 /* http RESPonse */
40#define LW_PXIP 64 /* proxy IP */
41#define LW_PXID 128 /* proxy ID */
42#define LW_BYTES 256 /* bytes read from server */
43#define LW_COOKIE 512 /* captured cookie */
44#define LW_REQHDR 1024 /* request header(s) */
45#define LW_RSPHDR 2048 /* response header(s) */
46
Willy Tarreaubaaee002006-06-26 02:48:02 +020047
48#endif /* _TYPES_LOG_H */
49
50/*
51 * Local variables:
52 * c-indent-level: 8
53 * c-basic-offset: 8
54 * End:
55 */