Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sinks::drop_on_overflow Class Reference

Log record dropping strategy. More...

#include <drop_on_overflow.hpp>

Static Public Member Functions

template<typename LockT >
static bool on_overflow (record_view const &, LockT &)
 This method is called by the queue when overflow is detected. More...
 
static void on_queue_space_available ()
 This method is called by the queue when there appears a free space. More...
 
static void interrupt ()
 This method is called by the queue to interrupt any possible waits in on_overflow. More...
 

Detailed Description

Log record dropping strategy.

This strategy will cause log records to be discarded in case of queue overflow in bounded asynchronous sinks. It should not be used if losing log records is not acceptable.

Member Function Documentation

static void boost::sinks::drop_on_overflow::interrupt ( )
inlinestatic

This method is called by the queue to interrupt any possible waits in on_overflow.

template<typename LockT >
static bool boost::sinks::drop_on_overflow::on_overflow ( record_view const &  ,
LockT &   
)
inlinestatic

This method is called by the queue when overflow is detected.

Return values
trueAttempt to enqueue the record again.
falseDiscard the record.
static void boost::sinks::drop_on_overflow::on_queue_space_available ( )
inlinestatic

This method is called by the queue when there appears a free space.


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