This class decides how much logs should be retained, the oldest ones will be released.
More...
#include <ee/LogRetentionPolicy.hpp>
|
const size_t | mMaxNumberOfLogs |
| The maximum number of logs we want to retain.
|
|
size_t | mCounter = 0 |
| The counter that remembers the number of logs already retained.
|
|
This class decides how much logs should be retained, the oldest ones will be released.
ee::LogRetentionMaxNumber::LogRetentionMaxNumber |
( |
size_t |
maxNumber | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
maxNumber | The maximum number of logs that should be retained. |
bool ee::LogRetentionMaxNumber::retain |
( |
const LogEntry & |
logEntry | ) |
|
|
overridevirtualnoexcept |
Decides whether to retain or relase the given log entry.
- Parameters
-
logEntry | The log entry to decide for. |
- Returns
- True if the given log entry should be retained.
Implements ee::LogRetentionPolicy.
The documentation for this class was generated from the following file: