]> git.ipfire.org Git - thirdparty/squid.git/blame - tools/squidclient/Parameters.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / tools / squidclient / Parameters.h
CommitLineData
5f623035 1/*
f70aedc4 2 * Copyright (C) 1996-2021 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 */
15class Parameters
16{
17public:
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
35extern Parameters scParams;
36
37#endif /* _SQUID_TOOLS_SQUIDCLIENT_PARAMETERS_H */
f53969cc 38