]>
Commit | Line | Data |
---|---|---|
5f623035 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
5f623035 AJ |
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 | ||
842cd45a AJ |
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 | ||
b4f805f6 AJ |
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 | ||
842cd45a AJ |
34 | /// global squidcleint parameters |
35 | extern Parameters scParams; | |
36 | ||
37 | #endif /* _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H */ | |
f53969cc | 38 |