Fixposition SDK 0.0.0-heads/main-0-g01e42d2
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
fpsdk::common::logging::LoggingOstream Class Reference

Utility to create a std::ostream that prints through the logging system. More...

#include <logging.hpp>

Public Member Functions

 LoggingOstream (const LoggingLevel level)
 Constructor.
std::ostream & operator* ()
 Get stream handle.

Detailed Description

Utility to create a std::ostream that prints through the logging system.

For example:

*w << "Hello world!" << std::endl; // This should print: Warning: Hello world!
LoggingOstream(const LoggingLevel level)
Constructor.
@ WARNING
[4/warning] Warnings (for libs and apps)
Definition logging.hpp:202
Note
Flushing the stream is required for the log message to be printed. Typically, std::endl flushes. Otherwise explicitly flush using std::flush when appropriate.

Definition at line 375 of file logging.hpp.

Constructor & Destructor Documentation

◆ LoggingOstream()

fpsdk::common::logging::LoggingOstream::LoggingOstream ( const LoggingLevel level)

Constructor.

Parameters
[in]levelThe logging level to use

Member Function Documentation

◆ operator*()

std::ostream & fpsdk::common::logging::LoggingOstream::operator* ( )
inline

Get stream handle.

Returns
the stream handle

Definition at line 390 of file logging.hpp.


The documentation for this class was generated from the following file: