Classes | |
class | FmtConfig |
class | Format |
class | Token |
class | TokenNamespace |
class | TokenTableEntry |
One entry in a table of format tokens. More... | |
Functions | |
size_t | AssembleOne (const char *start, MemBuf &buf, const AccessLogEntryPointer &ale) |
char * | QuoteUrlEncodeUsername (const char *name) |
char * | QuoteMimeBlob (const char *header) |
Variables | |
FmtConfig | TheConfig |
const SBuf | Dash |
static TokenTableEntry | TokenTable1C [] |
1-char tokens. More... | |
static TokenTableEntry | TokenTable2C [] |
2-char tokens More... | |
static TokenTableEntry | TokenTableMisc [] |
Miscellaneous >2 byte tokens. More... | |
static TokenTableEntry | TokenTableProxyProtocol [] |
static TokenTableEntry | TokenTableTransport [] |
static TokenTableEntry | TokenTableAdapt [] |
static TokenTableEntry | TokenTableIcap [] |
ICAP (icap::) tokens. More... | |
static TokenTableEntry | TokenTableSsl [] |
Enumeration Type Documentation
◆ ByteCode_t
enum Format::ByteCode_t |
Definition at line 30 of file ByteCode.h.
◆ Quoting
enum Format::Quoting |
Enumerator | |
---|---|
LOG_QUOTE_NONE | |
LOG_QUOTE_QUOTES | |
LOG_QUOTE_MIMEBLOB | |
LOG_QUOTE_URL | |
LOG_QUOTE_SHELL | |
LOG_QUOTE_RAW |
Definition at line 261 of file ByteCode.h.
Function Documentation
◆ AssembleOne()
size_t Format::AssembleOne | ( | const char * | start, |
MemBuf & | buf, | ||
const AccessLogEntryPointer & | ale | ||
) |
Compiles a single logformat code expression into the given buffer. Ignores any input characters after the expression.
- Parameters
-
start where the logformat expression begins
- Returns
- the length of the parsed code expression
Definition at line 99 of file Format.cc.
References MemBuf::append(), Format::Format::assemble(), assert, Format::Format::format, LOG_QUOTE_NONE, Format::Token::parse(), and quote.
Referenced by ErrorState::compileLogformatCode().
◆ QuoteMimeBlob()
char * Format::QuoteMimeBlob | ( | const char * | header | ) |
URL-style encoding on a MIME headers blob. May accept NULL or empty strings.
- Returns
- A dynamically allocated string. recipient is responsible for free()'ing
Definition at line 43 of file Quoting.cc.
References c2x, and xcalloc().
Referenced by Format::Format::assemble(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), Helper::Client::packStatsInto(), QuoteUrlEncodeUsername(), and Log::Format::SquidNative().
◆ QuoteUrlEncodeUsername()
char * Format::QuoteUrlEncodeUsername | ( | const char * | name | ) |
Safely URL-encode a username. Accepts NULL or empty strings.
Definition at line 31 of file Quoting.cc.
References QuoteMimeBlob().
Referenced by Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), Log::Format::SquidIcap(), and Log::Format::SquidNative().
Variable Documentation
◆ Dash
|
extern |
Referenced by accessLogLogTo(), and Log::Format::SquidReferer().
◆ TheConfig
|
extern |
Definition at line 16 of file Config.cc.
Referenced by Format::Token::Init(), and Format::Token::parse().
◆ TokenTable1C
|
static |
Definition at line 25 of file Token.cc.
Referenced by Format::Token::parse().
◆ TokenTable2C
|
static |
Definition at line 48 of file Token.cc.
Referenced by Format::Token::parse().
◆ TokenTableAdapt
|
static |
Definition at line 193 of file Token.cc.
Referenced by Format::Token::Init().
◆ TokenTableIcap
|
static |
Definition at line 203 of file Token.cc.
Referenced by Format::Token::Init().
◆ TokenTableMisc
|
static |
Definition at line 141 of file Token.cc.
Referenced by Format::Token::parse().
◆ TokenTableProxyProtocol
|
static |
Definition at line 184 of file Token.cc.
Referenced by Format::Token::Init().
◆ TokenTableSsl
|
static |
Definition at line 229 of file Token.cc.
Referenced by Format::Token::Init().
◆ TokenTableTransport
|
static |
Definition at line 188 of file Token.cc.
Referenced by Format::Token::Init().