logging: Handle dropped messages in log_output
Extended log_output interface to handle dropped messages. Log_output is printing a message containing number of dropped messages. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
1581155828
commit
a7568e4a6a
2 changed files with 48 additions and 15 deletions
|
@ -98,6 +98,15 @@ void log_output_msg_process(const struct log_output *log_output,
|
|||
struct log_msg *msg,
|
||||
u32_t flags);
|
||||
|
||||
/** @brief Process dropped messages indication.
|
||||
*
|
||||
* Function prints error message indicating lost log messages.
|
||||
*
|
||||
* @param log_output Pointer to the log output instance.
|
||||
* @param cnt Number of dropped messages.
|
||||
*/
|
||||
void log_output_dropped_process(const struct log_output *log_output, u32_t cnt);
|
||||
|
||||
/** @brief Flush output buffer.
|
||||
*
|
||||
* @param log_output Pointer to the log output instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue