#include <LogTags.h>
Public Member Functions | |
LogTags ()=default | |
LogTags (const LogTags_ot t) | |
void | update (const LogTags_ot t) |
const char * | c_str () const |
compute the status access.log field More... | |
bool | isTcpHit () const |
determine if the log tag code indicates a cache HIT More... | |
const char * | cacheStatusSource () const |
Public Attributes | |
LogTagsErrors | err |
various problems augmenting the primary log tag More... | |
LogTags_ot | oldType = LOG_TAG_NONE |
a set of client protocol, cache use, and other transaction outcome tags More... | |
CollapsingHistory | collapsingHistory |
controls CF tag presence More... | |
Static Private Attributes | |
static const char * | Str_ [] |
list of string representations for LogTags_ot More... | |
Detailed Description
Constructor & Destructor Documentation
◆ LogTags() [1/2]
|
default |
◆ LogTags() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ c_str()
const char * LogTags::c_str | ( | ) | const |
Definition at line 66 of file LogTags.cc.
References LogTagsErrors::aborted, assert, CollapsingHistory::collapsed(), collapsingHistory, err, LogTagsErrors::ignored, LOG_TYPE_MAX, oldType, Str_, and LogTagsErrors::timedout.
Referenced by Format::Format::assemble(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), clientReplyContext::processMiss(), Log::Format::SquidNative(), and statClientRequests().
◆ cacheStatusSource()
const char * LogTags::cacheStatusSource | ( | ) | const |
- Returns
- Cache-Status "hit" or "fwd=..." parameter (or nil)
Definition at line 115 of file LogTags.cc.
References LOG_ICP_QUERY, LOG_TAG_NONE, LOG_TCP_CLIENT_REFRESH_MISS, LOG_TCP_DENIED, LOG_TCP_DENIED_REPLY, LOG_TCP_HIT, LOG_TCP_IMS_HIT, LOG_TCP_INM_HIT, LOG_TCP_MEM_HIT, LOG_TCP_MISS, LOG_TCP_NEGATIVE_HIT, LOG_TCP_OFFLINE_HIT, LOG_TCP_REDIRECT, LOG_TCP_REFRESH, LOG_TCP_REFRESH_FAIL_ERR, LOG_TCP_REFRESH_FAIL_OLD, LOG_TCP_REFRESH_MODIFIED, LOG_TCP_REFRESH_UNMODIFIED, LOG_TCP_SWAPFAIL_MISS, LOG_TCP_TUNNEL, LOG_TYPE_MAX, LOG_UDP_DENIED, LOG_UDP_HIT, LOG_UDP_INVALID, LOG_UDP_MISS, LOG_UDP_MISS_NOFETCH, and oldType.
Referenced by clientReplyContext::buildReplyHeader().
◆ isTcpHit()
bool LogTags::isTcpHit | ( | ) | const |
Definition at line 101 of file LogTags.cc.
References LOG_TCP_HIT, LOG_TCP_IMS_HIT, LOG_TCP_INM_HIT, LOG_TCP_MEM_HIT, LOG_TCP_NEGATIVE_HIT, LOG_TCP_OFFLINE_HIT, LOG_TCP_REFRESH_FAIL_OLD, LOG_TCP_REFRESH_UNMODIFIED, and oldType.
Referenced by clientReplyContext::buildReplyHeader(), clientdbUpdate(), clientUpdateStatCounters(), and clientReplyContext::sendMoreData().
◆ update()
void LogTags::update | ( | const LogTags_ot | t | ) |
Definition at line 54 of file LogTags.cc.
References assert, debugs, LOG_TYPE_MAX, oldType, and Str_.
Referenced by LogTags(), TunnelStateData::TunnelStateData(), htcpLogHtcp(), icpCreateAndSend(), icpLogIcp(), and ClientHttpRequest::updateLoggingTags().
Member Data Documentation
◆ collapsingHistory
CollapsingHistory LogTags::collapsingHistory |
◆ err
LogTagsErrors LogTags::err |
Definition at line 84 of file LogTags.h.
Referenced by c_str(), clientReplyContext::handleIMSReply(), and FwdState::updateAleWithFinalError().
◆ oldType
LogTags_ot LogTags::oldType = LOG_TAG_NONE |
Definition at line 93 of file LogTags.h.
Referenced by clientReplyContext::buildReplyHeader(), c_str(), clientReplyContext::cacheHit(), cacheStatusSource(), clientdbUpdate(), clientUpdateStatCounters(), clientUpdateStatHistCounters(), clientReplyContext::doGetMoreData(), isTcpHit(), clientReplyContext::processReplyAccess(), and update().
◆ Str_
|
staticprivate |
The documentation for this class was generated from the following files:
- src/LogTags.h
- src/LogTags.cc