Utilities
Utilities header only library
ulog::PoolLogHandler Class Reference

Stores log messages in a pool to be processed later. More...

Inheritance diagram for ulog::PoolLogHandler:
[legend]

Public Member Functions

void AddMessage (ulog::Entry::Type type, ulog::Category categ, const std::string &msg, const std::string &caller) override
 Add message to the handler.
 
void ProcessEntries (std::function< void(const ulog::Entry &)> func)
 For every message stored in the pool, executes the specified function. Pool is empty afterwards.
 
size_t GetEntryCount () const
 Returns the number of log entries in the pool.
 

Detailed Description

Stores log messages in a pool to be processed later.