boost::log::record — Logging record class.
// In header: <boost/log/core/record.hpp> class record { public: // construct/copy/destruct record(); record(record &&); record& operator=(record &&); ~record(); // public member functions attribute_value_set & attribute_values(); attribute_value_set const & attribute_values() const; bool operator!() const; void swap(record &); void reset(); 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 &) const; record_view lock(); };
The logging record incapsulates 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.
record
public
construct/copy/destructrecord();
Default constructor. Creates an empty record that is equivalent to the invalid record handle.
Postconditions: |
|
record(record && that);
Move constructor. Source record contents unspecified after the operation.
record& operator=(record && that);
Move assignment. Source record contents unspecified after the operation.
~record();
Destructor. Destroys the record, releases any sinks and attribute values that were involved in processing this record.
record
public member functionsattribute_value_set & attribute_values();
Requires: |
|
Returns: |
A reference to the set of attribute values attached to this record |
attribute_value_set const & attribute_values() const;
Requires: |
|
Returns: |
A reference to the set of attribute values attached to this record |
bool operator!() const;
Conversion to an unspecified boolean type
Inverted conversion to an unspecified boolean type
Returns: |
|
Returns: |
|
void swap(record & that);
Swaps two handles
Parameters: |
|
void reset();
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.
Postconditions: |
|
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.
Parameters: |
|
||
Returns: |
A |
record_view 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
which is returned from the function. The record is no longer valid after the call.record_view
Requires: |
|
Postconditions: |
|
Returns: |
The record view that contains all attribute values from the original record. |