|
ReXGlue SDK
|
#include <rex/logging/logger.h>
Public Member Functions | |
| void | Write (const Message &message) override |
| void | Flush () override |
| u64 | CopySince (u64 after, std::vector< CapturedMessage > &out) const |
| u64 | GetLatestSequence () const |
Static Public Attributes | |
| static constexpr size_t | kCapacity = 4096 |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
Keeps the newest messages in memory for the console. Safe to read from any thread.
| u64 rex::log::LogCaptureSink::CopySince | ( | u64 | after, |
| std::vector< CapturedMessage > & | out ) const |
Copies the messages newer than a sequence, oldest first.
| after | Sequence of the newest message the caller holds, 0 for all. |
| out | Receives the messages. Cleared first. |
|
overridevirtual |
Does nothing, the messages are in memory.
Implements rex::log::ILogSink.
| u64 rex::log::LogCaptureSink::GetLatestSequence | ( | ) | const |
Returns the sequence of the newest message kept, 0 before the first message.
|
overridevirtual |
Keeps a message, discarding the oldest at capacity.
Implements rex::log::ILogSink.