|
Squid Web Cache master
|
#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 | |
| bool | isTcpHit () const |
| determine if the log tag code indicates a cache HIT | |
| const char * | cacheStatusSource () const |
Public Attributes | |
| LogTagsErrors | err |
| various problems augmenting the primary log tag | |
| LogTags_ot | oldType = LOG_TAG_NONE |
| a set of client protocol, cache use, and other transaction outcome tags | |
| CollapsingHistory | collapsingHistory |
| controls CF tag presence | |
Static Private Attributes | |
| static const char * | Str_ [] |
| list of string representations for LogTags_ot | |
|
default |
|
inlineexplicit |
| const char * LogTags::c_str | ( | ) | const |
Definition at line 75 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().
| const char * LogTags::cacheStatusSource | ( | ) | const |
Definition at line 124 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().
| bool LogTags::isTcpHit | ( | ) | const |
Definition at line 110 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().
| void LogTags::update | ( | const LogTags_ot | t | ) |
Definition at line 63 of file LogTags.cc.
References assert, debugs, LOG_TYPE_MAX, oldType, and Str_.
Referenced by LogTags(), TunnelStateData::TunnelStateData(), htcpLogHtcp(), icpCreateAndSend(), icpLogIcp(), and ClientHttpRequest::updateLoggingTags().
| CollapsingHistory LogTags::collapsingHistory |
| LogTagsErrors LogTags::err |
Definition at line 87 of file LogTags.h.
Referenced by c_str(), clientReplyContext::handleIMSReply(), and FwdState::updateAleWithFinalError().
| LogTags_ot LogTags::oldType = LOG_TAG_NONE |
Definition at line 96 of file LogTags.h.
Referenced by clientReplyContext::buildReplyHeader(), c_str(), clientReplyContext::cacheHit(), cacheStatusSource(), clientdbUpdate(), clientUpdateStatCounters(), clientUpdateStatHistCounters(), clientReplyContext::doGetMoreData(), isTcpHit(), clientReplyContext::processReplyAccess(), and update().
|
staticprivate |