access_log.cc
Go to the documentation of this file.
50using HeaderValueCounts = std::unordered_map<SBuf, uint64_t, std::hash<SBuf>, std::equal_to<SBuf>, PoolingAllocator<HeaderValueCountsElement> >;
199HierarchyLogEntry::resetPeerNotes(const Comm::ConnectionPointer &server, const char *requestedHost)
255 ", current total response time value: " << (totalResponseTime_.tv_sec * 1000 + totalResponseTime_.tv_usec/1000) <<
335 for (Format::Token * curr_token = (log->logFormat?log->logFormat->format:nullptr); curr_token; curr_token = curr_token->next) {
void accessLogLog(const AccessLogEntryPointer &al, ACLChecklist *checklist)
Definition: access_log.cc:136
void accessLogLogTo(CustomLog *log, const AccessLogEntryPointer &al, ACLChecklist *checklist)
Definition: access_log.cc:66
static void accessLogRegisterWithCacheManager(void)
Definition: access_log.cc:305
void fvdbCountVia(const SBuf &)
void fvdbCountForwarded(const SBuf &)
count occurrences of the given X-Forwarded-For header value
void log(char *format,...)
Definition: Checklist.h:27
class AccessLogEntry::HttpDetails http
Definition: CustomLog.h:18
Definition: Token.h:36
struct timeval peer_select_start
Definition: HierarchyLogEntry.h:65
void clearPeerNotes()
forget previous notePeerRead() and notePeerWrite() calls (if any)
Definition: access_log.cc:221
struct timeval peer_last_write_
time of the last write to the last peer
Definition: HierarchyLogEntry.h:78
bool totalResponseTime(struct timeval &responseTime)
Definition: access_log.cc:292
struct timeval store_complete_stop
Definition: HierarchyLogEntry.h:67
int64_t bodyBytesRead
number of body bytes received from the next hop or -1
Definition: HierarchyLogEntry.h:71
Comm::ConnectionPointer tcpServer
TCP/IP level details of the last peer/server connection.
Definition: HierarchyLogEntry.h:70
bool peerResponseTime(struct timeval &responseTime)
Definition: access_log.cc:265
struct timeval peer_last_read_
time of the last read from the last peer
Definition: HierarchyLogEntry.h:77
void startPeerClock()
Start recording total time spent communicating with peers.
Definition: access_log.cc:245
void resetPeerNotes(const Comm::ConnectionPointer &server, const char *requestedHost)
Definition: access_log.cc:199
Definition: PackableStream.h:76
STL Allocator that uses Squid memory pools for memory management.
Definition: PoolingAllocator.h:19
struct SquidConfig::@98 Log
Definition: Store.h:42
const char * dash_str
Logfile * logfileOpen(const char *path, size_t bufsz, int fatal_flag)
Definition: File.cc:40
const SBuf Dash
Definition: forward.h:18
void HttpdCombined(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd combined format.
Definition: FormatHttpdCombined.cc:22
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.
Definition: FormatSquidCustom.cc:20
void SquidIcap(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid ICAP format.
Definition: FormatSquidIcap.cc:23
void SquidUserAgent(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in useragent format.
Definition: FormatSquidUseragent.cc:18
void HttpdCommon(const AccessLogEntryPointer &al, Logfile *logfile)
Log with Apache httpd common format.
Definition: FormatHttpdCommon.cc:22
void SquidNative(const AccessLogEntryPointer &al, Logfile *logfile)
Native Squid Format Display.
Definition: FormatSquidNative.cc:22
void SquidReferer(const AccessLogEntryPointer &al, Logfile *logfile)
Display log details in Squid old refererlog format.
Definition: FormatSquidReferer.cc:18
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
void tvSub(struct timeval &res, struct timeval const &t1, struct timeval const &t2)
Definition: gadgets.cc:58
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:17