Log record dropping strategy.
More...
#include <drop_on_overflow.hpp>
|
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...
|
|
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.
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
-
true | Attempt to enqueue the record again. |
false | Discard 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: