]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/log/Config.cc
2 * Copyright (C) 1996-2014 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()) == NULL
)
25 ::Format::Format
*nlf
= new ::Format::Format(name
);
27 ConfigParser::EnableMacros();
28 if ((def
= ConfigParser::NextQuotedOrToEol()) == NULL
) {
32 ConfigParser::DisableMacros();
34 debugs(3, 2, "Log Format for '" << name
<< "' is '" << def
<< "'");
36 if (!nlf
->parse(def
)) {
41 // add to global config list
42 nlf
->next
= logformats
;