meta-information for debugs() or a similar debugging call More...
#include <Stream.h>

Public Member Functions | |
| Context (const int aSectionLevel, const int aLevel) | |
Public Attributes | |
| int | section |
| the debug section of the debugs() call More... | |
| int | level |
| minimum debugging level required by the debugs() call More... | |
| int | sectionLevel |
| maximum debugging level allowed during the call More... | |
Private Member Functions | |
| void | rewind (const int aSection, const int aLevel) |
| Optimization: avoids new Context creation for every debugs(). More... | |
Private Attributes | |
| Context * | upper |
| previous or parent record in nested debugging calls More... | |
| std::ostringstream | buf |
| debugs() output sink More... | |
| bool | forceAlert |
| the current debugs() will be a syslog ALERT More... | |
| bool | waitingForIdle |
Friends | |
| class | Debug |
| class | DebugMessageHeader |
Detailed Description
Constructor & Destructor Documentation
◆ Context()
Definition at line 1277 of file debug.cc.
References buf, and Debug::FormatStream().
Member Function Documentation
◆ rewind()
Definition at line 1290 of file debug.cc.
References assert, Debug::Current, Debug::FormatStream(), and Debug::Levels.
Referenced by Debug::Start().
Friends And Related Function Documentation
◆ Debug
◆ DebugMessageHeader
|
friend |
Member Data Documentation
◆ buf
|
private |
Definition at line 66 of file Stream.h.
Referenced by Context(), Debug::Finish(), Debug::LogMessage(), and Debug::Start().
◆ forceAlert
|
private |
Definition at line 67 of file Stream.h.
Referenced by Debug::Finish(), and Debug::ForceAlert().
◆ level
| int Debug::Context::level |
Definition at line 57 of file Stream.h.
Referenced by Debug::Finish(), and Debug::Level().
◆ section
◆ sectionLevel
| int Debug::Context::sectionLevel |
Definition at line 58 of file Stream.h.
Referenced by Debug::SectionLevel().
◆ upper
|
private |
Definition at line 65 of file Stream.h.
Referenced by Debug::Finish(), and Debug::LogWaitingForIdle().
◆ waitingForIdle
|
private |
whether this debugs() call originated when we were too busy handling other logging needs (e.g., logging another concurrent debugs() call)
Definition at line 71 of file Stream.h.
Referenced by Debug::Finish(), and Debug::Start().
The documentation for this class was generated from the following files:
- src/debug/Stream.h
- src/debug/debug.cc
- src/tests/stub_debug.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
