![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
Bounded log of recoverable engine errors, for a host to surface. More...
#include <engine_error_log.h>
Public Member Functions | |
| void | push (std::string category, std::string source, std::string message) |
| Record an error, dropping the oldest entries past CAPACITY. | |
| void | clearAll () |
| Drop every buffered entry. | |
| const std::vector< Entry > & | entries () const |
| The buffered entries. | |
| unsigned long long | totalPushed () const |
| Monotonic count of entries ever appended. | |
Bounded log of recoverable engine errors, for a host to surface.
Filled by reportError() once a host installs it with setErrorSink().
| void Vkm::Engine::EngineErrorLog::push | ( | std::string | category, |
| std::string | source, | ||
| std::string | message ) |
Record an error, dropping the oldest entries past CAPACITY.
A consecutive duplicate bumps the last entry's count instead.
| category | Subsystem that raised it. |
| source | What raised it. |
| message | What went wrong. |
|
inline |
The buffered entries.
|
inline |
Monotonic count of entries ever appended.
A deduped repeat does not bump it, so a frame-to-frame diff shows only new errors.