libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
sir::std_iostream_adapter< TPolicy > Class Template Reference

Provides a std::iostream interface to libsir's logging functions. More...

Inheritance diagram for sir::std_iostream_adapter< TPolicy >:
[legend]

Detailed Description

template<DerivedFromPolicy TPolicy>
class sir::std_iostream_adapter< TPolicy >

Provides a std::iostream interface to libsir's logging functions.

Enabled so long as SIR_NO_STD_IOSTREAM is not defined.

Implements a public std::ostream member for each available logging level (e.g. debug_stream, info_stream, ..., emerg_stream).

Example:

log.info_stream << "This is from std::iostream!" << std::endl;
The primary C++ interface to libsir.
Definition sir.hh:811
static bool throw_on_policy(bool expr) noexcept(false)
Handles a potential error; if an error is present and the policy in place requires throwing an except...
Definition sir.hh:289
See also
std_iostream_logger
Note
Use std::endl or std::flush to indicate the end of a log message if using the ostream << operator.
Template Parameters
TPolicyA derived class of policy which controls the behavior of logger and by association, its adapters.

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