stub_liblog.cc
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 #include "squid.h"
10 #include "fde.h"
11 #include "log/File.h"
12 
13 #define STUB_API "log/liblog.la"
14 #include "tests/STUB.h"
15 
16 // XXX: these should be moved to a log/ *.h file
17 #include "AccessLogEntry.h"
18 /*
19 AccessLogEntry::~AccessLogEntry() {STUB}
20 void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
21 SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
22 #if USE_OPENSSL
23 AccessLogEntry::SslDetails::SslDetails() {STUB}
24 #endif
25 */
28 void accessLogRotate(void) STUB
29 void accessLogClose(void) STUB
30 void accessLogInit(void) STUB
31 const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
32 
33 #include "log/access_log.h"
34 void fvdbCountVia(const SBuf &) STUB
35 
36 #include "log/Config.h"
37 namespace Log
38 {
40 LogConfig TheConfig;
41 }
42 
43 #include "log/FormattedLog.h"
44 bool FormattedLog::usesDaemon() const STUB_RETVAL(false)
45 
46 #include "log/File.h"
48 Logfile::Logfile(const char *) {STUB}
49 //void Logfile::f_linestart(Logfile *) STUB
50 //void Logfile::f_linewrite(Logfile *, const char *, size_t) STUB
51 //void Logfile::f_lineend(Logfile *) STUB
52 //void Logfile::f_flush(Logfile *) STUB
53 //void Logfile::f_rotate(Logfile *, const int16_t) STUB
54 //void Logfile::f_close(Logfile *) STUB
55 Logfile *logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
57 void logfileRotate(Logfile *, int16_t) STUB
58 void logfileWrite(Logfile *, const char *, size_t) STUB
60 void logfilePrintf(Logfile *, const char *, ...) STUB
63 
64 #include "log/Formats.h"
65 namespace Log
66 {
67 namespace Format
68 {
76 }
77 }
78 
79 #include "log/ModDaemon.h"
80 int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
81 
82 #include "log/ModStdio.h"
83 int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
84 
85 #include "log/ModSyslog.h"
86 int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
87 
88 #include "log/ModUdp.h"
89 int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
90 
91 #include "log/TcpLogger.h"
92 namespace Log
93 {
94 CBDATA_CLASS_INIT(TcpLogger);
95 int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
96 
97 /*
98 protected:
99  TcpLogger(size_t, bool, Ip::Address);
100  virtual ~TcpLogger();
101  void endGracefully();
102  void logRecord(const char *buf, size_t len);
103  void flush();
104  virtual void start() STUB
105  virtual bool doneAll() const STUB_RETVAL(true)
106  virtual void swanSong() STUB
107 */
108 }
109 
void accessLogClose(void)
Definition: access_log.cc:159
Logfile * logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr) void logfileClose(Logfile *) STUB void logfileRotate(Logfile *
Definition: File.cc:40
void accessLogInit(void)
Definition: access_log.cc:274
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
int const char int STUB_RETVAL(0) int logfile_mod_syslog_open(Logfile *
Definition: stub_liblog.cc:89
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
void accessLogLogTo(CustomLog *, const AccessLogEntryPointer &, ACLChecklist *checklist=nullptr)
Definition: access_log.cc:66
void logfileClose(Logfile *lf)
Definition: File.cc:92
Definition: SBuf.h:93
int logfile_mod_stdio_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModStdio.cc:177
LogConfig TheConfig
Definition: Config.cc:15
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
void accessLogLog(const AccessLogEntryPointer &, ACLChecklist *)
Definition: access_log.cc:136
void parseFormats()
Definition: Config.cc:104
static int Open(Logfile *lf, const char *path, size_t bufSz, int fatalFlag)
Definition: TcpLogger.cc:452
void logfilePrintf(Logfile *lf, const char *fmt,...)
Definition: File.cc:114
int logfile_mod_syslog_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
void fvdbCountVia(const SBuf &)
Logfile int16_t STUB void logfileWrite(Logfile *, const char *, size_t) STUB void logfileFlush(Logfile *) STUB void logfilePrintf(Logfile *
Definition: File.cc:108
void logfileFlush(Logfile *lf)
Definition: File.cc:139
int logfile_mod_udp_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModUdp.cc:135
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
const char * accessLogTime(time_t)
void logfileRotate(Logfile *lf, int16_t rotateCount)
Definition: File.cc:101
#define STUB
macro to stub a void function.
Definition: STUB.h:34
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:325
Logfile(const char *aPath)
Definition: File.cc:25
Definition: File.h:38
Definition: Config.h:17
int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0) int logfile_mod_stdio_open(Logfile *
Definition: ModDaemon.cc:210
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.
Logfile int16_t STUB void const char STUB void logfileLineStart(Logfile *) STUB void logfileLineEnd(Logfile *) STUB namespace Log
Definition: stub_liblog.cc:61
void accessLogRotate(void)
Definition: access_log.cc:145
void logfileLineEnd(Logfile *lf)
Definition: File.cc:132
bool usesDaemon() const
Definition: FormattedLog.cc:30
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.

 

Introduction

Documentation

Support

Miscellaneous