Formats.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 
16 class AccessLogEntry;
17 class CustomLog;
18 class Logfile;
19 
20 namespace Log
21 {
22 
23 namespace Format
24 {
25 
26 typedef enum {
31 #if ICAP_CLIENT
33 #endif
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 
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 
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
@ CLF_COMMON
Definition: Formats.h:29
void log(char *format,...)
@ CLF_COMBINED
Definition: Formats.h:28
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
@ CLF_CUSTOM
Definition: Formats.h:30
@ CLF_ICAP_SQUID
Definition: Formats.h:32
@ CLF_SQUID
Definition: Formats.h:35
@ CLF_REFERER
Definition: Formats.h:34
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
@ CLF_UNKNOWN
Definition: Formats.h:27
RefCount< AccessLogEntry > AccessLogEntryPointer
Definition: Formats.h:15
Definition: File.h:38
Definition: Config.h:17
@ CLF_USERAGENT
Definition: Formats.h:36
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.
void SquidReferer(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid old refererlog format.
@ CLF_NONE
Definition: Formats.h:37
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.

 

Introduction

Documentation

Support

Miscellaneous