QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
|
Namespaces | |
namespace | simple_ringbuffer_log_policy_detail |
Classes | |
struct | default_ringbuffer_log_level_checker |
A default ringbuffer log_level checker which returns whatever the log instance's level is. More... | |
class | ringbuffer_log |
Very fast threadsafe ring buffer log. More... | |
struct | simple_ringbuffer_log_policy |
A ring buffer log stored in a fixed QUICKCPPLIB_RINGBUFFER_LOG_DEFAULT_ENTRIES_NDEBUG/QUICKCPPLIB_RINGBUFFER_LOG_DEFAULT_ENTRIES_DEBUG std::array recording monotonic counter (8 bytes), high resolution clock time stamp (8 bytes), stack backtrace or func (40 bytes), level (1 byte), 191 bytes of char message. Each record is 256 bytes, therefore the ring buffer wraps after 256/4096 entries by default. More... | |
Typedefs | |
template<size_t Bytes = QUICKCPPLIB_RINGBUFFER_LOG_DEFAULT_ENTRIES * 256, class LogLevelChecker = default_ringbuffer_log_level_checker> | |
using | simple_ringbuffer_log = ringbuffer_log< simple_ringbuffer_log_policy< Bytes >, LogLevelChecker > |
Alias for a simple ringbuffer log. | |
Enumerations | |
enum class | level : unsigned char { none = 0 , fatal , error , warn , info , debug , all } |
Level of logged item. More... | |
Functions | |
template<class T > | |
const char * | last190 (const T &v) |
Returns a const char * no more than 190 chars from its end. | |
template<class Policy , class LogLevelChecker > | |
std::ostream & | operator<< (std::ostream &s, const ringbuffer_log< Policy, LogLevelChecker > &l) |
std::ostream writer for a log | |
template<class Policy , class LogLevelChecker > | |
std::string | csv (const ringbuffer_log< Policy, LogLevelChecker > &l) |
CSV string writer for a log. | |
using quickcpplib::_xxx::ringbuffer_log::simple_ringbuffer_log = typedef ringbuffer_log<simple_ringbuffer_log_policy<Bytes>, LogLevelChecker> |
Alias for a simple ringbuffer log.
|
strong |
|
inline |
Returns a const char * no more than 190 chars from its end.
|
inline |
std::ostream writer for a log
|
inline |
CSV string writer for a log.