]> git.ipfire.org Git - thirdparty/squid.git/blob - tools/squidclient/Parameters.h
SourceFormat Enforcement
[thirdparty/squid.git] / tools / squidclient / Parameters.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H
10 #define _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H
11
12 /**
13 * squidclient command line parameters.
14 */
15 class Parameters
16 {
17 public:
18 Parameters() : verbosityLevel(0) {}
19
20 /**
21 * What verbosity level to display.
22 *
23 * 0 : display no debug traces
24 * 1 : display outgoing request message
25 * 2+ : display all actions taken
26 */
27 int verbosityLevel;
28 };
29
30 /// display debug messages at varying verbosity levels
31 #define debugVerbose(LEVEL, MESSAGE) \
32 while ((LEVEL) <= scParams.verbosityLevel) {std::cerr << MESSAGE << std::endl; break;}
33
34 /// global squidcleint parameters
35 extern Parameters scParams;
36
37 #endif /* _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H */
38