stub_liblog.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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/*
19AccessLogEntry::~AccessLogEntry() {STUB}
20void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
21SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
22#if USE_OPENSSL
23AccessLogEntry::SslDetails::SslDetails() {STUB}
24#endif
25*/
28void accessLogRotate(void) STUB
29void accessLogClose(void) STUB
30void accessLogInit(void) STUB
31const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
32
33#include "log/access_log.h"
34void fvdbCountVia(const SBuf &) STUB
35#if HEADERS_LOG
36void headersLog(int, int, const HttpRequestMethod &, void *) STUB
37#endif
38
39#include "log/Config.h"
40namespace Log
41{
43LogConfig TheConfig;
44}
45
46#include "log/FormattedLog.h"
48
49#include "log/File.h"
51Logfile::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
58Logfile *logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
60void logfileRotate(Logfile *, int16_t) STUB
61void logfileWrite(Logfile *, const char *, size_t) STUB
63void logfilePrintf(Logfile *, const char *, ...) STUB
66
67#include "log/Formats.h"
68namespace Log
69{
70namespace Format
71{
79}
80}
81
82#include "log/ModDaemon.h"
83int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
84
85#include "log/ModStdio.h"
86int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
87
88#include "log/ModSyslog.h"
89int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
90
91#include "log/ModUdp.h"
92int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
93
94#include "log/TcpLogger.h"
95namespace Log
96{
97CBDATA_CLASS_INIT(TcpLogger);
98int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
99
100/*
101protected:
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
void accessLogInit(void)
Definition: access_log.cc:364
void accessLogClose(void)
Definition: access_log.cc:202
void accessLogLogTo(CustomLog *, const AccessLogEntryPointer &, ACLChecklist *checklist=nullptr)
Definition: access_log.cc:77
void accessLogRotate(void)
Definition: access_log.cc:182
void accessLogLog(const AccessLogEntryPointer &, ACLChecklist *)
Definition: access_log.cc:147
const char * accessLogTime(time_t)
#define false
Definition: GnuRegex.c:240
int logfile_mod_stdio_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModStdio.cc:177
int logfile_mod_syslog_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
int logfile_mod_udp_open(Logfile *lf, const char *path, size_t bufsz, int fatal_flag)
Definition: ModUdp.cc:133
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void fvdbCountVia(const SBuf &)
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:318
bool usesDaemon() const
Definition: FormattedLog.cc:30
void parseFormats()
Definition: Config.cc:104
static int Open(Logfile *lf, const char *path, size_t bufSz, int fatalFlag)
Definition: TcpLogger.cc:452
Definition: File.h:39
Logfile(const char *aPath)
Definition: File.cc:25
Definition: SBuf.h:94
void logfileLineEnd(Logfile *lf)
Definition: File.cc:132
void logfileFlush(Logfile *lf)
Definition: File.cc:139
void logfileRotate(Logfile *lf, int16_t rotateCount)
Definition: File.cc:101
void logfileClose(Logfile *lf)
Definition: File.cc:92
void logfilePrintf(Logfile *lf, const char *fmt,...)
Definition: File.cc:114
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
void SquidReferer(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid old refererlog format.
Definition: Config.h:18
LogConfig TheConfig
Definition: Config.cc:15
int const char int STUB_RETVAL(0) int logfile_mod_syslog_open(Logfile *
Definition: stub_liblog.cc:92
Logfile int16_t STUB void const char STUB void logfileLineStart(Logfile *) STUB void logfileLineEnd(Logfile *) STUB namespace Log
Definition: stub_liblog.cc:64
Logfile int16_t STUB void logfileWrite(Logfile *, const char *, size_t) STUB void logfileFlush(Logfile *) STUB void logfilePrintf(Logfile *
Definition: File.cc:108
int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0) int logfile_mod_stdio_open(Logfile *
Definition: ModDaemon.cc:210
Logfile * logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr) void logfileClose(Logfile *) STUB void logfileRotate(Logfile *
Definition: File.cc:40

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors