PTLib
Version 2.18.8
|
Template class to reduce noise level for some logging. More...
#include <object.h>
Public Member Functions | |
Throttle () | |
![]() | |
ThrottleBase (unsigned lowLevel, unsigned interval=60000, unsigned highLevel=6, unsigned maxShown=1) | |
ThrottleBase (const ThrottleBase &other) | |
ThrottleBase & | operator= (const ThrottleBase &other) |
bool | CanTrace (int64_t now=0) |
operator unsigned () const | |
__inline unsigned | GetLowLevel () const |
__inline unsigned | GetHighLevel () const |
__inline unsigned | GetCurrentLevel () const |
__inline unsigned | GetHiddenCount () const |
Additional Inherited Members | |
![]() | |
unsigned | m_interval |
unsigned | m_lowLevel |
unsigned | m_highLevel |
unsigned | m_maxShown |
atomic< unsigned > | m_currentLevel |
atomic< int64_t > | m_nextLog |
atomic< unsigned > | m_repeatCount |
atomic< unsigned > | m_hiddenCount |
Template class to reduce noise level for some logging.
This is primarily to set configuration values to compile time defaults without needing to be in ctor.
|
inline |