Printf out different threads on NUCLEO #3115
-
Hi. My Q is about best logging practices: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your problem is not a Mongoose problem, your question is not a Mongoose question, your problem is how to share a resource among different threads, and the fact that one of the users of that resource is Mongoose, is just anecdotic. Your problem is also your particular implementation of printf in the library you are using, and that does not depend on the board being NUCLEO or whatever, but on your choice of standard library (or IDE deciding that for you); based on your description, I guess newlib. but can't guess which flavor of it. Please see our documentation, and follow the guidelines in our tutorials. |
Beta Was this translation helpful? Give feedback.
Your problem is not a Mongoose problem, your question is not a Mongoose question, your problem is how to share a resource among different threads, and the fact that one of the users of that resource is Mongoose, is just anecdotic. Your problem is also your particular implementation of printf in the library you are using, and that does not depend on the board being NUCLEO or whatever, but on your choice of standard library (or IDE deciding that for you); based on your description, I guess newlib. but can't guess which flavor of it.
Mongoose log can be controlled with these: https://mongoose.ws/documentation/#logging . Basically, you can write your function to catch what is to be logged and…