]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/log/Config.cc
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
11 #include "ConfigParser.h"
13 #include "log/Config.h"
15 Log::LogConfig
Log::TheConfig
;
18 Log::LogConfig::parseFormats()
22 if (!(name
= ConfigParser::NextToken())) {
26 ::Format::Format
*nlf
= new ::Format::Format(name
);
28 ConfigParser::EnableMacros();
29 if (!(def
= ConfigParser::NextQuotedOrToEol())) {
34 ConfigParser::DisableMacros();
36 debugs(3, 2, "Log Format for '" << name
<< "' is '" << def
<< "'");
38 if (!nlf
->parse(def
)) {
44 // add to global config list
45 nlf
->next
= logformats
;