Class that keeps record of current line hit for occasional logging.
More...
#include <easylogging++.h>
Class that keeps record of current line hit for occasional logging.
Definition at line 2055 of file easylogging++.h.
◆ HitCounter() [1/3]
| el::base::HitCounter::HitCounter |
( |
void |
| ) |
|
|
inline |
◆ HitCounter() [2/3]
Definition at line 2063 of file easylogging++.h.
const char * filename(void) const
base::type::LineNumber lineNumber(void) const
◆ HitCounter() [3/3]
| el::base::HitCounter::HitCounter |
( |
const HitCounter & |
hitCounter | ) |
|
|
inline |
Definition at line 2069 of file easylogging++.h.
2070 m_filename(hitCounter.m_filename),
2071 m_lineNumber(hitCounter.m_lineNumber),
2072 m_hitCounts(hitCounter.m_hitCounts) {
◆ ~HitCounter()
| virtual el::base::HitCounter::~HitCounter |
( |
void |
| ) |
|
|
inlinevirtual |
◆ filename()
| const char* el::base::HitCounter::filename |
( |
void |
| ) |
const |
|
inline |
◆ hitCounts()
| std::size_t el::base::HitCounter::hitCounts |
( |
void |
| ) |
const |
|
inline |
◆ increment()
| void el::base::HitCounter::increment |
( |
void |
| ) |
|
|
inline |
◆ lineNumber()
◆ operator=()
Definition at line 2075 of file easylogging++.h.
2076 if (&hitCounter !=
this) {
2077 m_filename = hitCounter.m_filename;
2078 m_lineNumber = hitCounter.m_lineNumber;
2079 m_hitCounts = hitCounter.m_hitCounts;
◆ resetLocation()
Resets location of current hit counter.
Definition at line 2088 of file easylogging++.h.
const char * filename(void) const
base::type::LineNumber lineNumber(void) const
◆ validateHitCounts()
| void el::base::HitCounter::validateHitCounts |
( |
std::size_t |
n | ) |
|
|
inline |
Validates hit counts and resets it if necessary.
Definition at line 2094 of file easylogging++.h.
2095 if (m_hitCounts >= base::consts::kMaxLogPerCounter) {
2096 m_hitCounts = (n >= 1 ? base::consts::kMaxLogPerCounter % n : 0);
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/easylogging++/easylogging++.h