]> git.ipfire.org Git - thirdparty/squid.git/blame - src/log/Formats.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / log / Formats.h
CommitLineData
bbc27441
AJ
1/*
2 * Copyright (C) 1996-2014 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
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
15typedef RefCount<AccessLogEntry> AccessLogEntryPointer;
20efa1c2 16class AccessLogEntry;
8f645002 17class CustomLog;
20efa1c2
AJ
18class Logfile;
19
20namespace Log
21{
22
23namespace Format
24{
25
26typedef 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 41void SquidNative(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
42
43/// Display log details in Squid ICAP format.
41ebd397 44void SquidIcap(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
45
46/// Display log details in useragent format.
41ebd397 47void SquidUserAgent(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
48
49/// Display log details in Squid old refererlog format.
41ebd397 50void SquidReferer(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
51
52/// Log with a local custom format
87ddff6e 53void SquidCustom(const AccessLogEntryPointer &al, CustomLog * log);
20efa1c2
AJ
54
55/// Log with Apache httpd common format
41ebd397 56void HttpdCommon(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
57
58/// Log with Apache httpd combined format
41ebd397 59void HttpdCombined(const AccessLogEntryPointer &al, Logfile * logfile);
20efa1c2
AJ
60
61}; // namespace Format
62}; // namespace Log
63
64#endif /* _SQUID_LOG_FORMATS_H */