[jira] [Commented] (MYNEWT-444) The log level should be configurable module by module. Log recording should be according to the level
[ https://issues.apache.org/jira/browse/MYNEWT-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592661#comment-15592661 ] Peter Snyder commented on MYNEWT-444: - We found a slight issue in log_append that was committed in fix: c3cdf9f18aef27842558ed379b6f1dd9e079fcf4 in the develop branch. Anyone using logs will want to make sure they have that change. > The log level should be configurable module by module. Log recording should > be according to the level > - > > Key: MYNEWT-444 > URL: https://issues.apache.org/jira/browse/MYNEWT-444 > Project: Mynewt > Issue Type: Improvement >Reporter: Aditi Hilbert >Assignee: Peter Snyder > > It would be useful to be able to set different log levels for different > packages e.g. ERROR for LOG_MODULE_OS and DEBUG for LOG_MODULE_NIMBLE_CTLR > Should be more efficient use of memory to log according to the level instead > of logging everything and only displaying according to the level. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MYNEWT-444) The log level should be configurable module by module. Log recording should be according to the level
[ https://issues.apache.org/jira/browse/MYNEWT-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592253#comment-15592253 ] ASF subversion and git services commented on MYNEWT-444: Commit 4ae25f3a3a77c4a9f5704b6194b72e02dbea89a7 in incubator-mynewt-core's branch refs/heads/develop from [~peterfs] [ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-core.git;h=4ae25f3 ] MYNEWT-444 - Configure log level per-module Add argument to log_register specifying the log level (e.g, LOG_WARN, etc) to be accepted in the log. A new field was added to log structure to store the log level. New define LOG_SYSLEVEL is the "defined" system log level. Bonus fixes for log and nimble unit tests. > The log level should be configurable module by module. Log recording should > be according to the level > - > > Key: MYNEWT-444 > URL: https://issues.apache.org/jira/browse/MYNEWT-444 > Project: Mynewt > Issue Type: Improvement >Reporter: Aditi Hilbert >Assignee: Peter Snyder > > It would be useful to be able to set different log levels for different > packages e.g. ERROR for LOG_MODULE_OS and DEBUG for LOG_MODULE_NIMBLE_CTLR > Should be more efficient use of memory to log according to the level instead > of logging everything and only displaying according to the level. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MYNEWT-444) The log level should be configurable module by module. Log recording should be according to the level
[ https://issues.apache.org/jira/browse/MYNEWT-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15583591#comment-15583591 ] Peter Snyder commented on MYNEWT-444: - Stated differently, the request is to allow log messages to be filtered on input based on a level set for each registered log, and allowing each module the ability to set this log level individually. For example, nffs could set a log level LOG_LEVEL_WARN and LOG_DEBUG messages would not be captured at all. In addition, other registered logs could enable LOG_DEBUG messages and capture all messages. > The log level should be configurable module by module. Log recording should > be according to the level > - > > Key: MYNEWT-444 > URL: https://issues.apache.org/jira/browse/MYNEWT-444 > Project: Mynewt > Issue Type: Improvement >Reporter: Aditi Hilbert > > It would be useful to be able to set different log levels for different > packages e.g. ERROR for LOG_MODULE_OS and DEBUG for LOG_MODULE_NIMBLE_CTLR > Should be more efficient use of memory to log according to the level instead > of logging everything and only displaying according to the level. -- This message was sent by Atlassian JIRA (v6.3.4#6332)