You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/04/25 16:26:57 UTC

[GitHub] [mynewt-core] wes3 opened a new pull request #1782: sys/log: Add setting for maximum log entry size when writing.

wes3 opened a new pull request #1782: sys/log: Add setting for maximum log entry size when writing.
URL: https://github.com/apache/mynewt-core/pull/1782
 
 
   This commit adds the ability to set a maximum log entry for a given log. By default, the log maximum entry length is set to 0. A value of 0 for this field means that no check should be made for maximum log entry length. If set to a non-zero value, the log write routine(s) will check the log body length (does nt include the size of the log entry header) and if it exceeds the maximum, OS_ENOMEM will be returned and the too_long log stat will be incremented. A new API was added named log_set_max_entry_len() which allows the user to set the maximum entry length.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services