]> git.ipfire.org Git - thirdparty/squid.git/blob - src/log/Formats.h
50c258fb6695a337c160b4f790965b86839f2d7e
[thirdparty/squid.git] / src / log / Formats.h
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
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
9 #ifndef _SQUID_LOG_FORMATS_H
10 #define _SQUID_LOG_FORMATS_H
11
12 #include "AccessLogEntry.h"
13 #include "base/RefCount.h"
14
15 typedef RefCount<AccessLogEntry> AccessLogEntryPointer;
16 class AccessLogEntry;
17 class CustomLog;
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
41 void SquidNative(const AccessLogEntryPointer &al, Logfile * logfile);
42
43 /// Display log details in Squid ICAP format.
44 void SquidIcap(const AccessLogEntryPointer &al, Logfile * logfile);
45
46 /// Display log details in useragent format.
47 void SquidUserAgent(const AccessLogEntryPointer &al, Logfile * logfile);
48
49 /// Display log details in Squid old refererlog format.
50 void SquidReferer(const AccessLogEntryPointer &al, Logfile * logfile);
51
52 /// Log with a local custom format
53 void SquidCustom(const AccessLogEntryPointer &al, CustomLog * log);
54
55 /// Log with Apache httpd common format
56 void HttpdCommon(const AccessLogEntryPointer &al, Logfile * logfile);
57
58 /// Log with Apache httpd combined format
59 void HttpdCombined(const AccessLogEntryPointer &al, Logfile * logfile);
60
61 }; // namespace Format
62 }; // namespace Log
63
64 #endif /* _SQUID_LOG_FORMATS_H */
65