Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
Logger Struct Reference

simple printf-style logging infrastructure More...

#include <logger.h>

Inherits Sink< Buffer< uint8_t > >.

Inherited by BufferedLogger, and IFACE.

Collaboration diagram for Logger:
[legend]

Public Member Functions

void info (const char *fmt,...)
 Info log level.
 
void warn (const char *fmt,...)
 Warn log level.
 
void print (const char *fmt,...)
 None log level.
 
bool full () override
 check if sink is full
 
void push (Buffer< uint8_t > &&b) override
 push otherwisely prepared Buffer through Logger
 
 Logger (Sink< Buffer< uint8_t > > &snk)
 create Logger wrapping a Buffer Sink
 
virtual void push (const Buffer< uint8_t > &t)
 copy semantics does not check for space. guard by using 'if (!full) { ... }'
 
void trypush (Buffer< uint8_t > &&t)
 use this if you don't care if it's going to be successful. data gets discarded if sink is full.
 

Detailed Description

simple printf-style logging infrastructure


The documentation for this struct was generated from the following file: