20 switch (logformatType) {
56 if (strcmp(logformatName,
"auto") == 0) {
57 debugs(0,
DBG_CRITICAL,
"WARNING: Log format 'auto' no longer exists. Using 'squid' instead.");
61 if (strcmp(logformatName,
"squid") == 0)
64 if (strcmp(logformatName,
"common") == 0)
67 if (strcmp(logformatName,
"combined") == 0)
71 if (strcmp(logformatName,
"icap_squid") == 0)
75 if (strcmp(logformatName,
"useragent") == 0)
78 if (strcmp(logformatName,
"referrer") == 0)
90 for (
auto i = logformats; i ; i = i->next) {
91 if (strcmp(i->name, logformatName) == 0)
100 return FindBuiltInFormat(logformatName) || findCustomFormat(logformatName);
114 if (FindBuiltInFormat(name)) {
119 if (findCustomFormat(name)) {
134 debugs(3, 2,
"Log Format for '" << name <<
"' is '" << def <<
"'");
136 if (!nlf->
parse(def)) {
143 nlf->
next = logformats;
const char * cfg_filename
static void DisableMacros()
Do not allow macros inside quoted strings.
static char * NextQuotedOrToEol()
static char * NextToken()
static void EnableMacros()
Allow macros inside quoted strings.
static const char * BuiltInFormatName(Format::log_type type)
bool knownFormat(const char *logformatName) const
static Format::log_type FindBuiltInFormat(const char *logformatName)
::Format::Format * findCustomFormat(const char *logformatName) const
#define DBG_PARSE_NOTE(x)
#define debugs(SECTION, LEVEL, CONTENT)