Squid Web Cache
master
Loading...
Searching...
No Matches
Formats.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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_SRC_LOG_FORMATS_H
10
#define SQUID_SRC_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
41
void
SquidNative
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
42
44
void
SquidIcap
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
45
47
void
SquidUserAgent
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
48
50
void
SquidReferer
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
51
53
void
SquidCustom
(
const
AccessLogEntryPointer
&al,
CustomLog
*
log
);
54
56
void
HttpdCommon
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
57
59
void
HttpdCombined
(
const
AccessLogEntryPointer
&al,
Logfile
* logfile);
60
61
};
// namespace Format
62
};
// namespace Log
63
64
#endif
/* SQUID_SRC_LOG_FORMATS_H */
65
AccessLogEntry.h
AccessLogEntryPointer
RefCount< AccessLogEntry > AccessLogEntryPointer
Definition
Formats.h:15
RefCount.h
log
void log(char *format,...)
AccessLogEntry
Definition
AccessLogEntry.h:41
CustomLog
Definition
CustomLog.h:18
Logfile
Definition
File.h:39
RefCount
Definition
RefCount.h:28
Format
Definition
SchemeConfig.h:28
Log::Format::HttpdCombined
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
Definition
FormatHttpdCombined.cc:22
Log::Format::SquidCustom
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.
Definition
FormatSquidCustom.cc:20
Log::Format::SquidIcap
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
Definition
FormatSquidIcap.cc:23
Log::Format::SquidUserAgent
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.
Definition
FormatSquidUseragent.cc:18
Log::Format::log_type
log_type
Definition
Formats.h:26
Log::Format::CLF_COMBINED
@ CLF_COMBINED
Definition
Formats.h:28
Log::Format::CLF_ICAP_SQUID
@ CLF_ICAP_SQUID
Definition
Formats.h:32
Log::Format::CLF_COMMON
@ CLF_COMMON
Definition
Formats.h:29
Log::Format::CLF_USERAGENT
@ CLF_USERAGENT
Definition
Formats.h:36
Log::Format::CLF_SQUID
@ CLF_SQUID
Definition
Formats.h:35
Log::Format::CLF_REFERER
@ CLF_REFERER
Definition
Formats.h:34
Log::Format::CLF_NONE
@ CLF_NONE
Definition
Formats.h:37
Log::Format::CLF_UNKNOWN
@ CLF_UNKNOWN
Definition
Formats.h:27
Log::Format::CLF_CUSTOM
@ CLF_CUSTOM
Definition
Formats.h:30
Log::Format::HttpdCommon
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
Definition
FormatHttpdCommon.cc:22
Log::Format::SquidNative
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
Definition
FormatSquidNative.cc:22
Log::Format::SquidReferer
void SquidReferer(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid old refererlog format.
Definition
FormatSquidReferer.cc:18
Log
Definition
Config.h:18
squid
src
log
Formats.h
Generated by
1.9.8