fcf::NTest::log() function
Package: fcfTest
File: test.hpp
Available from version: 1.0.1
Returns a reference to the output stream for default level log messages. This level is used for simple message that require attention.
The message will only be written to the output if the current logger threshold is set to
Result
- A reference to the stream used for default logging. If the log level is too low, this returns a reference to an empty stream buffer (which does not perform any action.).
Example: Basic Logging
Directly outputting a message.
#define FCF_TEST_IMPLEMENTATION
#include <fcfTest/test.hpp>
int main() {
// This will be printed because the default level is fcf::NTest::LL_LOG
fcf::NTest::log () << "The application is running." << std::endl;
return error ? 1 : 0;
}
Output:
The application is running.
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.