#include <Format.h>

Collaboration diagram for Format::Format:

Public Member Functions

 Format (const char *name)
 
virtual ~Format ()
 
bool parse (const char *def)
 
void assemble (MemBuf &mb, const AccessLogEntryPointer &al, int logSequenceNumber) const
 assemble the state information into a formatted line. More...
 
void dump (StoreEntry *entry, const char *directiveName, bool eol=true) const
 dump this whole list of formats into the provided StoreEntry More...
 

Public Attributes

char * name
 
Tokenformat
 
Formatnext
 

Detailed Description

Definition at line 41 of file Format.h.

Constructor & Destructor Documentation

Format::Format::Format ( const char *  name)

Definition at line 41 of file Format.cc.

References xstrdup.

Format::Format::~Format ( )
virtual

Definition at line 48 of file Format.cc.

References next, NULL, and xfree.

Member Function Documentation

void Format::Format::assemble ( MemBuf mb,
const AccessLogEntryPointer al,
int  logSequenceNumber 
) const

Definition at line 367 of file Format.cc.

References actualReplyHeader(), actualRequestHeader(), AccessLogEntry::adapt, AccessLogEntry::Headers::adapted_request, AccessLogEntry::adapted_request, HttpRequest::adaptHistory(), Adaptation::History::allLogString(), Adaptation::History::allMeta, MemBuf::append(), SBuf::append(), Packable::appendf(), SBuf::appendf(), assert, HttpRequest::auth_user_request, HierarchyLogEntry::bodyBytesRead, AccessLogEntry::IcapLogEntry::bodyBytesRead, AccessLogEntry::SslDetails::bumpMode, Ssl::bumpMode(), AccessLogEntry::IcapLogEntry::bytesRead, AccessLogEntry::IcapLogEntry::bytesSent, LogTags::c_str(), SBuf::c_str(), AccessLogEntry::cache, AccessLogEntry::CacheDetails::caddr, Security::NegotiationHistory::cipherName(), SBuf::clear(), HttpRequest::client_addr, Server::clientConnection, HttpRequest::clientConnectionManager, AccessLogEntry::HttpDetails::clientReplySz, AccessLogEntry::HttpDetails::clientRequestSz, HierarchyLogEntry::code, AccessLogEntry::HttpDetails::code, AccessLogEntry::CacheDetails::code, conn, MemBuf::content(), AccessLogEntry::HttpDetails::content_type, Auth::UserRequest::credentialsStr(), current_time, HttpRequest::dnsWait, HttpRequest::effectiveRequestUri(), NotePairs::empty(), Eui::Eui48::encode(), Eui::Eui64::encode(), ERR_DETAIL_EXCEPTION_START, ERR_DETAIL_MAX, ERR_DETAIL_NONE, ERR_DETAIL_START, ERR_NONE, ERR_SECURE_CONNECT_FAIL, HttpRequest::errDetail, errorDetailName(), errorPageName(), HttpRequest::errType, HttpRequest::extacl_log, HttpRequest::extacl_user, Comm::Connection::fd, fd_table, NotePairs::find(), HttpRequest::flags, FQDN_LOOKUP_IF_MISS, fqdncache_gethostbyaddr(), CbcPointer< Cbc >::get(), HttpHeader::getByName(), HttpHeader::getByNameListMember(), AccessLogEntry::getClientIdent(), HttpHeader::getEntry(), Ssl::GetErrorName(), AccessLogEntry::getExtUser(), AccessLogEntry::getLogClientIp(), AccessLogEntry::getLogMethod(), URL::getScheme(), Ssl::GetX509CAAttribute, Ssl::GetX509UserAttribute, Comm::Connection::hasTlsNegotiations(), MessageSizes::header, Http::Message::header, AccessLogEntry::headers, Security::NegotiationHistory::helloVersion(), AccessLogEntry::hier, hier_code_str, AccessLogEntry::CacheDetails::highOffset, HierarchyLogEntry::host, URL::host(), AccessLogEntry::IcapLogEntry::hostAddr, AccessLogEntry::http, Http::Message::http_ver, HttpHeaderInitPos, AccessLogEntry::icap, AnyP::UriScheme::image(), HttpRequestMethod::image(), MemBuf::init(), RequestFlags::intercepted, RequestFlags::interceptTproxy, AccessLogEntry::IcapLogEntry::ioTime, Ip::Address::isAnyAddr(), Comm::IsConnOpen(), SBuf::isEmpty(), Ip::Address::isIPv4(), AccessLogEntry::AdaptationDetails::last_meta, AccessLogEntry::lastAclData, AccessLogEntry::lastAclName, Format::LFT_ADAPTATION_ALL_XACT_TIMES, Format::LFT_ADAPTATION_LAST_ALL_HEADERS, Format::LFT_ADAPTATION_LAST_HEADER, Format::LFT_ADAPTATION_LAST_HEADER_ELEM, Format::LFT_ADAPTATION_SUM_XACT_TIMES, Format::LFT_ADAPTED_REPLY_SIZE_HEADERS, Format::LFT_ADAPTED_REPLY_SIZE_TOTAL, Format::LFT_ADAPTED_REQUEST_ALL_HEADERS, Format::LFT_ADAPTED_REQUEST_HEADER, Format::LFT_ADAPTED_REQUEST_HEADER_ELEM, Format::LFT_CLIENT_EUI, Format::LFT_CLIENT_FQDN, Format::LFT_CLIENT_IO_SIZE_TOTAL, Format::LFT_CLIENT_IP_ADDRESS, Format::LFT_CLIENT_LOCAL_IP, Format::LFT_CLIENT_LOCAL_NFMARK, Format::LFT_CLIENT_LOCAL_PORT, Format::LFT_CLIENT_LOCAL_TOS, Format::LFT_CLIENT_PORT, Format::LFT_CLIENT_REQ_METHOD, Format::LFT_CLIENT_REQ_URI, Format::LFT_CLIENT_REQ_URLDOMAIN, Format::LFT_CLIENT_REQ_URLPATH, Format::LFT_CLIENT_REQ_URLPORT, Format::LFT_CLIENT_REQ_URLSCHEME, Format::LFT_CLIENT_REQ_VERSION, Format::LFT_CLIENT_REQUEST_SIZE_HEADERS, Format::LFT_CLIENT_REQUEST_SIZE_TOTAL, Format::LFT_CREDENTIALS, Format::LFT_DNS_WAIT_TIME, Format::LFT_EXT_ACL_CLIENT_EUI48, Format::LFT_EXT_ACL_CLIENT_EUI64, Format::LFT_EXT_ACL_DATA, Format::LFT_EXT_ACL_NAME, Format::LFT_EXT_ACL_USER_CA_CERT, Format::LFT_EXT_ACL_USER_CERT, Format::LFT_EXT_ACL_USER_CERT_RAW, Format::LFT_EXT_ACL_USER_CERTCHAIN_RAW, Format::LFT_EXT_LOG, Format::LFT_HTTP_BODY_BYTES_READ, Format::LFT_HTTP_RECEIVED_STATUS_CODE, Format::LFT_HTTP_SENT_STATUS_CODE, Format::LFT_HTTP_SENT_STATUS_CODE_OLD_30, Format::LFT_ICAP_ADDR, Format::LFT_ICAP_BODY_BYTES_READ, Format::LFT_ICAP_BYTES_READ, Format::LFT_ICAP_BYTES_SENT, Format::LFT_ICAP_IO_TIME, Format::LFT_ICAP_OUTCOME, Format::LFT_ICAP_REP_ALL_HEADERS, Format::LFT_ICAP_REP_HEADER, Format::LFT_ICAP_REP_HEADER_ELEM, Format::LFT_ICAP_REQ_ALL_HEADERS, Format::LFT_ICAP_REQ_HEADER, Format::LFT_ICAP_REQ_HEADER_ELEM, Format::LFT_ICAP_REQUEST_METHOD, Format::LFT_ICAP_REQUEST_URI, Format::LFT_ICAP_SERV_NAME, Format::LFT_ICAP_STATUS_CODE, Format::LFT_ICAP_TOTAL_TIME, Format::LFT_ICAP_TR_RESPONSE_TIME, Format::LFT_LOCAL_LISTENING_IP, Format::LFT_LOCAL_LISTENING_PORT, Format::LFT_MIME_TYPE, Format::LFT_NONE, Format::LFT_NOTE, Format::LFT_PEER_RESPONSE_TIME, Format::LFT_PERCENT, Format::LFT_REPLY_ALL_HEADERS, Format::LFT_REPLY_HEADER, Format::LFT_REPLY_HEADER_ELEM, Format::LFT_REPLY_HIGHOFFSET, Format::LFT_REPLY_OBJECTSIZE, Format::LFT_REQUEST_ALL_HEADERS, Format::LFT_REQUEST_HEADER, Format::LFT_REQUEST_HEADER_ELEM, Format::LFT_REQUEST_METHOD, Format::LFT_REQUEST_URI, Format::LFT_REQUEST_URLGROUP_OLD_2X, Format::LFT_REQUEST_URLPATH_OLD_31, Format::LFT_REQUEST_VERSION, Format::LFT_REQUEST_VERSION_OLD_2X, Format::LFT_SEQUENCE_NUMBER, Format::LFT_SERVER_FQDN_OR_PEER_NAME, Format::LFT_SERVER_IP_ADDRESS, Format::LFT_SERVER_LOCAL_IP, Format::LFT_SERVER_LOCAL_IP_OLD_27, Format::LFT_SERVER_LOCAL_NFMARK, Format::LFT_SERVER_LOCAL_PORT, Format::LFT_SERVER_LOCAL_TOS, Format::LFT_SERVER_PORT, Format::LFT_SERVER_REQ_METHOD, Format::LFT_SERVER_REQ_URI, Format::LFT_SERVER_REQ_URLDOMAIN, Format::LFT_SERVER_REQ_URLPATH, Format::LFT_SERVER_REQ_URLPORT, Format::LFT_SERVER_REQ_URLSCHEME, Format::LFT_SERVER_REQ_VERSION, Format::LFT_SQUID_ERROR, Format::LFT_SQUID_ERROR_DETAIL, Format::LFT_SQUID_HIERARCHY, Format::LFT_SQUID_STATUS, Format::LFT_SSL_BUMP_MODE, Format::LFT_SSL_CLIENT_SNI, Format::LFT_SSL_SERVER_CERT_ERRORS, Format::LFT_SSL_SERVER_CERT_ISSUER, Format::LFT_SSL_SERVER_CERT_SUBJECT, Format::LFT_SSL_USER_CERT_ISSUER, Format::LFT_SSL_USER_CERT_SUBJECT, Format::LFT_STRING, Format::LFT_TAG, Format::LFT_TIME_GMT, Format::LFT_TIME_LOCALTIME, Format::LFT_TIME_SECONDS_SINCE_EPOCH, Format::LFT_TIME_START, Format::LFT_TIME_SUBSECOND, Format::LFT_TIME_TO_HANDLE_REQUEST, Format::LFT_TLS_CLIENT_NEGOTIATED_CIPHER, Format::LFT_TLS_CLIENT_NEGOTIATED_VERSION, Format::LFT_TLS_CLIENT_RECEIVED_HELLO_VERSION, Format::LFT_TLS_CLIENT_SUPPORTED_VERSION, Format::LFT_TLS_SERVER_NEGOTIATED_CIPHER, Format::LFT_TLS_SERVER_NEGOTIATED_VERSION, Format::LFT_TLS_SERVER_RECEIVED_HELLO_VERSION, Format::LFT_TLS_SERVER_SUPPORTED_VERSION, Format::LFT_TOTAL_SERVER_SIDE_RESPONSE_TIME, Format::LFT_USER_EXTERNAL, Format::LFT_USER_IDENT, Format::LFT_USER_LOGIN, Format::LFT_USER_NAME, Comm::Connection::local, Format::LOG_QUOTE_MIMEBLOB, Format::LOG_QUOTE_NONE, Format::LOG_QUOTE_QUOTES, Format::LOG_QUOTE_RAW, Format::LOG_QUOTE_SHELL, Format::LOG_QUOTE_URL, log_quoted_string(), AnyP::ProtocolVersion::major, MessageSizes::messageTotal(), Adaptation::History::metaHeaders, HttpRequest::method, Adaptation::methodReqmod, Adaptation::methodRespmod, Adaptation::methodStr(), AnyP::ProtocolVersion::minor, HttpRequest::my_addr, Security::NegotiationHistory::negotiatedVersion(), CbDataList< C >::next, Format::Token::next, Comm::Connection::nfmark, AccessLogEntry::notes, NULL, AccessLogEntry::CacheDetails::objectSize, AccessLogEntry::IcapLogEntry::outcome, URL::path(), HierarchyLogEntry::peer_reply_status, HierarchyLogEntry::peerResponseTime(), HierarchyLogEntry::ping, URL::port(), Ip::Address::port(), AccessLogEntry::CacheDetails::port, PRId64, AccessLogEntry::IcapLogEntry::processingTime, quote, Format::QuoteMimeBlob(), Comm::Connection::remote, Comm::Connection::remoteEui48, Comm::Connection::remoteEui64, AccessLogEntry::Headers::reply, AccessLogEntry::IcapLogEntry::reply, AccessLogEntry::IcapLogEntry::reqMethod, AccessLogEntry::Headers::request, AccessLogEntry::request, AccessLogEntry::IcapLogEntry::request, AccessLogEntry::IcapLogEntry::reqUri, AccessLogEntry::IcapLogEntry::resStatus, rfc1738_escape, rfc1738_escape_unescaped, safe_free, sb, Http::scNone, ConnStateData::serverBump(), AccessLogEntry::IcapLogEntry::serviceName, String::size(), squid_curtime, AccessLogEntry::ssl, AccessLogEntry::CacheDetails::sslClientCert, sslErrorName(), sslGetCAAttribute(), sslGetUserAttribute(), sslGetUserCertificatePEM(), AccessLogEntry::CacheDetails::ssluser, AccessLogEntry::CacheDetails::start_time, MemBuf::stolen, StringToSBuf(), strOrNull, strwordquote(), Adaptation::History::sumLogString(), Security::NegotiationHistory::supportedVersion(), HttpRequest::tag, AccessLogEntry::tcpClient, HierarchyLogEntry::tcpServer, String::termedBuf(), ping_data::timedout, Comm::Connection::tos, Ip::Address::toStr(), NotePairs::toString(), HierarchyLogEntry::totalResponseTime(), AccessLogEntry::CacheDetails::trTime, AccessLogEntry::IcapLogEntry::trTime, tvToMsec(), AccessLogEntry::url, HttpRequest::url, Auth::UserRequest::username(), CbcPointer< Cbc >::valid(), AccessLogEntry::HttpDetails::version, and xmalloc.

Referenced by constructHelperQuery(), Auth::SchemeConfig::CreateAuthUser(), makeExternalAclKey(), and Log::Format::SquidCustom().

Member Data Documentation

Token* Format::Format::format

Definition at line 60 of file Format.h.

Referenced by accessLogInit(), makeExternalAclKey(), and parse_externalAclHelper().

char* Format::Format::name

Definition at line 59 of file Format.h.

Referenced by dump_access_log(), and setLogformat().

Format* Format::Format::next

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors