]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
20efa1c2 AJ |
9 | #ifndef _SQUID_LOG_FORMATS_H |
10 | #define _SQUID_LOG_FORMATS_H | |
11 | ||
e0bd1c91 | 12 | #include "AccessLogEntry.h" |
8bf217bd | 13 | #include "base/RefCount.h" |
41ebd397 CT |
14 | |
15 | typedef RefCount<AccessLogEntry> AccessLogEntryPointer; | |
20efa1c2 | 16 | class AccessLogEntry; |
8f645002 | 17 | class CustomLog; |
20efa1c2 AJ |
18 | class Logfile; |
19 | ||
20 | namespace Log | |
21 | { | |
22 | ||
23 | namespace Format | |
24 | { | |
25 | ||
26 | typedef enum { | |
27 | CLF_UNKNOWN, | |
28 | CLF_COMBINED, | |
29 | CLF_COMMON, | |
30 | CLF_CUSTOM, | |
31 | #if ICAP_CLIENT | |
32 | CLF_ICAP_SQUID, | |
33 | #endif | |
34 | CLF_REFERER, | |
35 | CLF_SQUID, | |
36 | CLF_USERAGENT, | |
37 | CLF_NONE | |
38 | } log_type; | |
39 | ||
40 | /// Native Squid Format Display | |
41ebd397 | 41 | void SquidNative(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
42 | |
43 | /// Display log details in Squid ICAP format. | |
41ebd397 | 44 | void SquidIcap(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
45 | |
46 | /// Display log details in useragent format. | |
41ebd397 | 47 | void SquidUserAgent(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
48 | |
49 | /// Display log details in Squid old refererlog format. | |
41ebd397 | 50 | void SquidReferer(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
51 | |
52 | /// Log with a local custom format | |
87ddff6e | 53 | void SquidCustom(const AccessLogEntryPointer &al, CustomLog * log); |
20efa1c2 AJ |
54 | |
55 | /// Log with Apache httpd common format | |
41ebd397 | 56 | void HttpdCommon(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
57 | |
58 | /// Log with Apache httpd combined format | |
41ebd397 | 59 | void HttpdCombined(const AccessLogEntryPointer &al, Logfile * logfile); |
20efa1c2 AJ |
60 | |
61 | }; // namespace Format | |
62 | }; // namespace Log | |
63 | ||
64 | #endif /* _SQUID_LOG_FORMATS_H */ | |
f53969cc | 65 |