Logging record class. More...
#include <record.hpp>
Public Member Functions | |
| record () | |
| Default constructor. More... | |
| record (BOOST_RV_REF(record) that) BOOST_NOEXCEPT | |
| Move constructor. More... | |
| ~record () BOOST_NOEXCEPT | |
| Destructor. More... | |
| record & | operator= (BOOST_RV_REF(record) that) BOOST_NOEXCEPT |
| Move assignment. More... | |
| attribute_value_set & | attribute_values () BOOST_NOEXCEPT |
| attribute_value_set const & | attribute_values () const BOOST_NOEXCEPT |
| bool | operator! () const BOOST_NOEXCEPT |
| Conversion to an unspecified boolean type. More... | |
| void | swap (record &that) BOOST_NOEXCEPT |
| Swaps two handles. More... | |
| void | reset () BOOST_NOEXCEPT |
| Resets the log record handle. More... | |
| attribute_value_set::mapped_type | operator[] (attribute_value_set::key_type name) const |
| Attribute value lookup. More... | |
| template<typename DescriptorT , template< typename > class ActorT> | |
| result_of::extract< typename expressions::attribute_keyword < DescriptorT, ActorT > ::value_type, DescriptorT > ::type | operator[] (expressions::attribute_keyword< DescriptorT, ActorT > const &keyword) const |
| Attribute value lookup. More... | |
| BOOST_LOG_API record_view | lock () |
| The function ensures that the log record does not depend on any thread-specific data. More... | |
Friends | |
| class | core |
Logging record class.
The logging record encapsulates all information related to a single logging statement, in particular, attribute values view and the log message string. The record can be updated before pushing for further processing to the logging core.
|
inline |
Default constructor.
Creates an empty record that is equivalent to the invalid record handle.
!*this == true
|
inline |
Move constructor.
Source record contents unspecified after the operation.
|
inline |
Destructor.
Destroys the record, releases any sinks and attribute values that were involved in processing this record.
References reset().
|
inline |
!!*this Referenced by boost::value_visitor_invoker< channel_value_type, channel_fallback_policy >::operator()(), boost::value_extractor< T, FallbackPolicyT, TagT >::operator()(), and boost::operator<<().
|
inline |
!!*this | BOOST_LOG_API record_view boost::record::lock | ( | ) |
The function ensures that the log record does not depend on any thread-specific data.
Then the record contents are used to construct a record_view which is returned from the function. The record is no longer valid after the call.
!!*this !*this
|
inline |
Conversion to an unspecified boolean type.
true, if the *this identifies a log record, false, if the *this is not validInverted conversion to an unspecified boolean type
false, if the *this identifies a log record, true, if the *this is not valid
|
inline |
|
inline |
Attribute value lookup.
| name | Attribute name. |
attribute_value, non-empty if it is found, empty otherwise. References boost::iostreams::gzip::flags::name.
|
inline |
|
inline |
Resets the log record handle.
If there are no other handles left, the log record is closed and all resources referenced by the record are released.
!*this == true References boost::serialization::destroy().
Referenced by ~record().
|
inline |
Swaps two handles.
| that | Another record to swap with Throws: Nothing |
References boost::multiprecision::backends::p.
Referenced by operator=().
|
friend |