boost::log::formatters::fmt_if — Conditional 'if' formatter.
// In header: <boost/log/formatters/if.hpp> template<typename FilterT, typename FormatterT> class fmt_if : public basic_formatter< FormatterT::char_type, fmt_if< FilterT, FormatterT > > { public: // types typedef base_type::string_type string_type; // String type. typedef base_type::ostream_type ostream_type; // Stream type. typedef base_type::record_type record_type; // Log record type. // construct/copy/destruct fmt_if(FilterT const &, FormatterT const &); // public member functions void operator()(ostream_type &, record_type const &) const; // public data members implementation_defined else_; };
fmt_if
public member functionsvoid operator()(ostream_type & strm, record_type const & record) const;
Formatting operator. Applies the filter to the log record. If the filter returns true
passes the received arguments to the aggregated formatter. Otherwise does nothing.
Parameters: |
|