|
fastcgi++
A C++ FastCGI/Web API
|
Contains the Fastcgipp debugging/logging mechanism. More...
Enumerations | |
| enum | Level { INFO = 0, FAIL = 1, ERROR = 2, WARNING = 3, DEBUG = 4, DIAG = 5 } |
| Communicate the log level to the header generator. More... | |
Functions | |
| std::wstring | getHostname () |
| std::wstring | getProgram () |
| void | header (Level level) |
| Send a log header to logstream. More... | |
Variables | |
| std::array< std::wstring, 6 > | levels |
| std::wostream * | logstream |
| The actual stream we will be logging to. More... | |
| std::mutex | mutex |
| Thread safe the logging mechanism. More... | |
| std::wstring | hostname |
| Hostname to use in logging. More... | |
| std::wstring | program |
| Application name to use in loggin. More... | |
| bool | suppress |
| Set to true if you want to suppress non-error logs. More... | |
Contains the Fastcgipp debugging/logging mechanism.
| std::wstring Fastcgipp::Logging::getHostname | ( | ) |
Definition at line 49 of file log.cpp.
References WARNING_LOG.
| std::wstring Fastcgipp::Logging::getProgram | ( | ) |
Definition at line 68 of file log.cpp.
References levels, and WARNING_LOG.
| void Fastcgipp::Logging::header | ( | Level | level | ) |
Send a log header to logstream.
Definition at line 107 of file log.cpp.
References hostname, levels, logstream, and program.
Referenced by Fastcgipp::Request< charT >::complete(), Fastcgipp::FcgiStreambuf< charT, traits >::dump(), Fastcgipp::FcgiStreambuf< charT, traits >::emptyBuffer(), Fastcgipp::Request< charT >::handler(), Fastcgipp::Manager_base::localHandler(), Fastcgipp::Manager_base::push(), and Fastcgipp::Transceiver::receive().
| std::wstring Fastcgipp::Logging::hostname |
Hostname to use in logging.
Referenced by header().
| std::array<std::wstring, 6> Fastcgipp::Logging::levels |
Definition at line 90 of file log.cpp.
Referenced by getProgram(), and header().
| std::wostream* Fastcgipp::Logging::logstream |
The actual stream we will be logging to.
Referenced by header().
| std::mutex Fastcgipp::Logging::mutex |
| std::wstring Fastcgipp::Logging::program |
Application name to use in loggin.
Referenced by header().
| bool Fastcgipp::Logging::suppress |
Set to true if you want to suppress non-error logs.
1.8.11