stub_liblog.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 #include "squid.h"
10 #include "fde.h"
11 
12 #define STUB_API "log/liblog.la"
13 #include "tests/STUB.h"
14 
15 // XXX: these should be moved to a log/ *.h file
16 #include "AccessLogEntry.h"
17 /*
18 AccessLogEntry::~AccessLogEntry() {STUB}
19 void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
20 SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
21 #if USE_OPENSSL
22 AccessLogEntry::SslDetails::SslDetails() {STUB}
23 #endif
24 */
27 void accessLogRotate(void) STUB
28 void accessLogClose(void) STUB
29 void accessLogInit(void) STUB
30 const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
31 
32 #include "log/access_log.h"
33 void fvdbCountVia(const char *) STUB
34 void fvdbCountForw(const char *) STUB
35 #if HEADERS_LOG
36 void headersLog(int, int, const HttpRequestMethod &, void *) STUB
37 #endif
38 
39 #include "log/Config.h"
40 namespace Log
41 {
43 LogConfig TheConfig;
44 }
45 
46 #include "log/CustomLog.h"
47 bool CustomLog::usesDaemon() const STUB_RETVAL(false)
48 
49 #include "log/File.h"
51 Logfile::Logfile(const char *) {STUB}
52 //void Logfile::f_linestart(Logfile *) STUB
53 //void Logfile::f_linewrite(Logfile *, const char *, size_t) STUB
54 //void Logfile::f_lineend(Logfile *) STUB
55 //void Logfile::f_flush(Logfile *) STUB
56 //void Logfile::f_rotate(Logfile *, const int16_t) STUB
57 //void Logfile::f_close(Logfile *) STUB
58 Logfile *logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
60 void logfileRotate(Logfile *, int16_t) STUB
61 void logfileWrite(Logfile *, char *, size_t) STUB
63 void logfilePrintf(Logfile *, const char *, ...) STUB
66 
67 #include "log/Formats.h"
68 namespace Log
69 {
70 namespace Format
71 {
79 }
80 }
81 
82 #include "log/ModDaemon.h"
83 int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
84 
85 #include "log/ModStdio.h"
86 int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
87 
88 #include "log/ModSyslog.h"
89 int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
90 
91 #include "log/ModUdp.h"
92 int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
93 
94 #include "log/TcpLogger.h"
95 namespace Log
96 {
97 CBDATA_CLASS_INIT(TcpLogger);
98 int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
99 
100 /*
101 protected:
102  TcpLogger(size_t, bool, Ip::Address);
103  virtual ~TcpLogger();
104  void endGracefully();
105  void logRecord(const char *buf, size_t len);
106  void flush();
107  virtual void start() STUB
108  virtual bool doneAll() const STUB_RETVAL(true)
109  virtual void swanSong() STUB
110 */
111 }
112 
representation of a custom log directive.
Definition: CustomLog.h:22
void parseFormats()
Definition: Config.cc:18
int logfile_mod_stdio_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModStdio.cc:177
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
void accessLogClose(void)
Definition: access_log.cc:202
int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0) int logfile_mod_stdio_open(Logfile *
Definition: ModDaemon.cc:211
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.
void logfilePrintf(Logfile *lf, const char *fmt,...)
Definition: File.cc:112
void accessLogLog(AccessLogEntry::Pointer &, ACLChecklist *checklist)
Definition: access_log.cc:144
Definition: File.h:38
int logfile_mod_syslog_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Logfile int16_t STUB void const char STUB void logfileLineStart(Logfile *) STUB void logfileLineEnd(Logfile *) STUB namespace Log
Definition: stub_liblog.cc:64
void logfileFlush(Logfile *lf)
Definition: File.cc:147
void logfileLineEnd(Logfile *lf)
Definition: File.cc:140
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
void fvdbCountVia(const char *key)
void SquidReferer(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid old refererlog format.
Definition: Config.h:16
static int Open(Logfile *lf, const char *path, size_t bufSz, int fatalFlag)
Definition: TcpLogger.cc:448
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
void logfileClose(Logfile *lf)
Definition: File.cc:90
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Logfile int16_t STUB void logfileWrite(Logfile *, char *, size_t) STUB void logfileFlush(Logfile *) STUB void logfilePrintf(Logfile *
Definition: File.cc:106
Logfile * logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr) void logfileClose(Logfile *) STUB void logfileRotate(Logfile *
Definition: File.cc:38
void accessLogLogTo(CustomLog *log, AccessLogEntry::Pointer &al, ACLChecklist *checklist=NULL)
Definition: access_log.cc:74
void accessLogRotate(void)
Definition: access_log.cc:179
const char * accessLogTime(time_t)
int const char int STUB_RETVAL(0) int logfile_mod_syslog_open(Logfile *
Definition: stub_liblog.cc:92
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:318
Logfile(const char *aPath)
Definition: File.cc:23
void logfileRotate(Logfile *lf, int16_t rotateCount)
Definition: File.cc:99
int logfile_mod_udp_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModUdp.cc:132
LogConfig TheConfig
Definition: Config.cc:15
bool usesDaemon() const
Definition: CustomLog.cc:14
void accessLogInit(void)
Definition: access_log.cc:365
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
void fvdbCountForw(const char *key)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors