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/*
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
36#include "log/Config.h"
37namespace Log
38{
40LogConfig TheConfig;
41}
42
43#include "log/FormattedLog.h"
44bool FormattedLog::usesDaemon() const STUB_RETVAL(false)
45
46#include "log/File.h"
48Logfile::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
55Logfile *logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
57void logfileRotate(Logfile *, int16_t) STUB
58void logfileWrite(Logfile *, const char *, size_t) STUB
60void logfilePrintf(Logfile *, const char *, ...) STUB
63
64#include "log/Formats.h"
65namespace Log
66{
67namespace Format
68{
76}
77}
78
79#include "log/ModDaemon.h"
80int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
81
82#include "log/ModStdio.h"
83int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
84
85#include "log/ModSyslog.h"
86int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
87
88#include "log/ModUdp.h"
89int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
90
91#include "log/TcpLogger.h"
92namespace Log
93{
94CBDATA_CLASS_INIT(TcpLogger);
95int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
96
97/*
98protected:
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 accessLogInit(void)
Definition: access_log.cc:313
void accessLogClose(void)
Definition: access_log.cc:159
void accessLogLogTo(CustomLog *, const AccessLogEntryPointer &, ACLChecklist *checklist=nullptr)
Definition: access_log.cc:66
void accessLogRotate(void)
Definition: access_log.cc:145
void accessLogLog(const AccessLogEntryPointer &, ACLChecklist *)
Definition: access_log.cc:136
const char * accessLogTime(time_t)
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:135
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void fvdbCountVia(const SBuf &)
#define CBDATA_CLASS_INIT(type)
Definition: cbdata.h:320
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:89
Logfile int16_t STUB void const char STUB void logfileLineStart(Logfile *) STUB void logfileLineEnd(Logfile *) STUB namespace Log
Definition: stub_liblog.cc:61
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