14 #ifndef KERNEL_LOGHIST_H_
15 #define KERNEL_LOGHIST_H_
24 #define LH_BUFFER_LENGTH 16
25 #define LH_BUFFER_WIDTH 80
char * lhGetLine(int idx)
Returns a line from the in memory log, where index 0 is the last logged line.
bool lhFlashInit()
Initializes the flash storage (may take a while).
bool lhFlashItNext(char *bufPtr, int bufSize)
Get the next element.
void lhStore(LogLevel level, char *msg)
Stores a line in the buffer, and in flash if activated.
uint32_t lhGetLineById(uint32_t lastId, char **logLinePtr)
Returns the last log-line based on log-line ID.
bool lhEnableFlashWrite
Boolean to enable to disable the writing of logging to the flash.
bool lhFlashItStart(int count)
Start the iteration through the flash entries.
Implements a generic logger facility.