access_log.cc
Go to the documentation of this file.
61 using HeaderValueCounts = std::unordered_map<SBuf, uint64_t, std::hash<SBuf>, std::equal_to<SBuf>, PoolingAllocator<HeaderValueCountsElement> >;
250 HierarchyLogEntry::resetPeerNotes(const Comm::ConnectionPointer &server, const char *requestedHost)
306 ", current total response time value: " << (totalResponseTime_.tv_sec * 1000 + totalResponseTime_.tv_usec/1000) <<
386 for (Format::Token * curr_token = (log->logFormat?log->logFormat->format:NULL); curr_token; curr_token = curr_token->next) {
void accessLogLog(const AccessLogEntryPointer &al, ACLChecklist *checklist)
Definition: access_log.cc:147
void accessLogLogTo(CustomLog *log, const AccessLogEntryPointer &al, ACLChecklist *checklist)
Definition: access_log.cc:77
static void accessLogRegisterWithCacheManager(void)
Definition: access_log.cc:356
static void mcast_encode(unsigned int *, size_t, const unsigned int *)
Definition: access_log.cc:502
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::CacheDetails cache
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:272
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:343
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:316
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:296
void resetPeerNotes(const Comm::ConnectionPointer &server, const char *requestedHost)
Definition: access_log.cc:250
Definition: HttpReply.h:25
Definition: RequestMethod.h:27
Definition: HttpRequest.h:49
Http::StatusCode status() const
retrieve the status code for this status line
Definition: StatusLine.h:45
Definition: PackableStream.h:76
STL Allocator that uses Squid memory pools for memory management.
Definition: PoolingAllocator.h:17
struct SquidConfig::@105 Addrs
struct SquidConfig::@101 Log
struct SquidConfig::@117 mcast_miss
Definition: Store.h:42
int comm_udp_sendto(int fd, const Ip::Address &to_addr, const void *buf, int len)
Definition: comm.cc:890
int comm_open(int sock_type, int proto, Ip::Address &addr, int flags, const char *note)
Definition: comm.cc:223
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:22
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