is there some way I can do something like the following?
Main.c:
LOG_MODULE_REGISTER(app);
test.c:
LOG_INF(app, “hello world”);
is there some way I can do something like the following?
Main.c:
LOG_MODULE_REGISTER(app);
test.c:
LOG_INF(app, “hello world”);
Hi.
Not quite, instead you should use LOG_MODULE_DECLARE() to declare in test.c. Then LOG_INF will log under the app module in test.c
See the documentation here,
regards
Jared